/* 
 * DJ ARTISAN Agency Landing Page - CSS Styles
 * Author: Senior Frontend Developer
 * Description: Responsive, bilingual landing page with dark/light mode and RTL support
 */

/* Variables for theme colors */
:root {
  /* Primary Color */
  --primary-color: #4c1f9f;
  --primary-hover: #3a177a;

  /* Light Theme Colors */
  --bg-light: #ffffff;
  --text-light: #333333;
  --text-light-secondary: #666666;
  --border-light: #e9ecef;
  --card-bg-light: #f8f9fa;
  --header-bg-light: rgba(255, 255, 255, 0.95);

  /* Dark Theme Colors */
  --bg-dark: #121212;
  --text-dark: #f5f5f5;
  --text-dark-secondary: #cccccc;
  --border-dark: #333333;
  --card-bg-dark: #1e1e1e;
  --header-bg-dark: rgba(18, 18, 18, 0.95);

  /* Current Theme Colors */
  --bg-color: var(--bg-light);
  --text-color: var(--text-light);
  --text-secondary: var(--text-light-secondary);
  --border-color: var(--border-light);
  --card-bg: var(--card-bg-light);
  --header-bg: var(--header-bg-light);

  /* Spacing */
  --section-padding: 5rem 0;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Dark Theme Override */
[data-theme="dark"] {
  --bg-color: var(--bg-dark);
  --text-color: var(--text-dark);
  --text-secondary: var(--text-dark-secondary);
  --border-color: var(--border-dark);
  --card-bg: var(--card-bg-dark);
  --header-bg: var(--header-bg-dark);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: 
    linear-gradient(135deg, color-mix(in srgb, var(--bg-color) 95%, var(--primary-color) 5%) 0%, var(--bg-color) 100%),
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--bg-color) 98%, var(--primary-color) 2%) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--bg-color) 98%, var(--primary-color) 2%) 0%, transparent 20%);
  background-attachment: fixed;
  color: var(--text-color);
  transition: var(--transition);
  direction: rtl;
  overflow-x: hidden;
  min-width: 320px;
  width: 100%;
  max-width: 100vw;
}

/* For French language (LTR) */
body[dir="ltr"] {
  direction: ltr;
}

body[dir="ltr"] .rtl-only {
  display: none;
}

body[dir="rtl"] .ltr-only {
  display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 31, 159, 0.3);
}

/* Forms */
.form-control {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 12px 15px;
  border-radius: 8px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(76, 31, 159, 0.25);
  outline: 0;
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-fallback-img {
  max-width: 200px;
  max-height: 200px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Styles */
.header-section {
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: var(--header-bg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  background: linear-gradient(135deg, var(--header-bg) 0%, color-mix(in srgb, var(--header-bg) 90%, var(--primary-color) 10%) 100%);
}

.header-section.scrolled {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--header-bg) 0%, color-mix(in srgb, var(--header-bg) 80%, var(--primary-color) 20%) 100%);
  padding: 0.5rem 0;
}

.navbar {
  padding: 1rem 0;
  min-height: 80px;
}

/* Ensure proper spacing on mobile */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    padding: 0.5rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    z-index: 1001; /* Ensure it's above other elements */
  }
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  border-radius: 8px;
}

.brand-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: #000000;
  font-weight: 800;
  /* Match Hero Title weight */
  margin: 0 15px;
  position: relative;
  padding: 8px 0 !important;
  font-size: 1.1rem;
  transition: var(--transition);
  border-radius: 6px;
  font-family: 'Cairo', sans-serif !important;
  /* Force Cairo to be sure */
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(76, 31, 159, 0.08);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
  transition: var(--transition);
}

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

.language-toggle .btn,
.theme-toggle .btn {
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  transition: var(--transition);
}

.language-toggle .btn:hover,
.theme-toggle .btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 31, 159, 0.3);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(76, 31, 159, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2876, 31, 159, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  /* Increased from 80px to clear header + breathing room */
  padding-bottom: 5rem;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(at 0% 0%, hsla(260, 100%, 56%, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(280, 100%, 56%, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(240, 100%, 56%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(220, 100%, 56%, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Keeps vertical centering */
  width: 100%;
  max-width: 100vw;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary-color) 15%, transparent 85%) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary-color) 15%, transparent 85%) 0%, transparent 20%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  min-width: 100%;
}

.hero-section>.container {
  position: relative;
  z-index: 1;
}

.hero-title-text {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.hero-subtitle-text {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  box-shadow: 0 8px 20px rgba(76, 31, 159, 0.3);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(76, 31, 159, 0.4);
}

.hero-buttons .btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--text-color);
  background: transparent;
  font-weight: 600;
}

.hero-buttons .btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 31, 159, 0.3);
}

/* Ensure proper text color in both light and dark modes */
body[data-theme="light"] .hero-buttons .btn-outline-primary {
  color: var(--text-color) !important;
}

body[data-theme="dark"] .hero-buttons .btn-outline-primary {
  color: var(--text-color) !important;
}

/* Additional specificity for the contact button */
.hero-buttons .btn-outline-primary[data-i18n="hero-cta-contact"],
.hero-buttons .btn-outline-primary[href="#contact"] {
  color: var(--text-color) !important;
  border-color: var(--primary-color) !important;
}

/* Even more specific styles for the hero buttons */
#hero .hero-buttons .btn-outline-primary {
  color: var(--text-color) !important;
  border-color: var(--primary-color) !important;
  background: transparent !important;
}

#hero .hero-buttons .btn-outline-primary:hover,
#hero .hero-buttons .btn-outline-primary:focus {
  color: white !important;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 31, 159, 0.3);
}

/* Override Bootstrap's default btn-outline-primary if needed */
.btn-outline-primary:not(.hero-buttons .btn-outline-primary) {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:not(.hero-buttons .btn-outline-primary):hover {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.stat-number {
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Typography improvements for French */
body[dir="ltr"] {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4,
body[dir="ltr"] h5,
body[dir="ltr"] h6 {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

body[dir="ltr"] .hero-title-text {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body[dir="ltr"] .hero-subtitle-text {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Arabic typography remains unchanged */
body[dir="rtl"] {
  font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
  font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
}

/* Sections Common Styles */
.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
  box-shadow: 0 5px 15px rgba(76, 31, 159, 0.4);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background: 
    linear-gradient(135deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color) 95%, var(--primary-color) 5%) 100%),
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary-color) 5%, transparent 95%) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary-color) 5%, transparent 95%) 0%, transparent 20%);
  background-attachment: fixed;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary-color) 8%, transparent 92%) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary-color) 8%, transparent 92%) 0%, transparent 20%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.services-section>.container {
  position: relative;
  z-index: 1;
}

.service-card {
  background: linear-gradient(145deg, var(--card-bg), color-mix(in srgb, var(--card-bg) 90%, white 10%));
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, var(--primary-color) 30%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  opacity: 0;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 2;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px color-mix(in srgb, black 20%, var(--primary-color) 5%);
  border-color: var(--primary-color);
}

/* Service Icon */
.service-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  box-shadow: 0 8px 20px rgba(76, 31, 159, 0.3);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 25px rgba(182, 138, 16, 0.4);
}


/* Ensure hero section text colors match desktop on mobile */
.hero-section .text-light {
  color: var(--text-color) !important;
  /* Ensure readability on any background */
  font-weight: 600;
}


/* Mobile-specific hero text styling to match desktop */
@media (max-width: 991.98px) {
  #hero .hero-title-text {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
  
  #hero .hero-subtitle-text {
    color: var(--text-secondary) !important;
  }
  
  /* Specifically target the contact button text */
  #hero .hero-buttons .btn-outline-primary {
    color: var(--text-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
  }
  
  #hero .hero-buttons .btn-outline-primary:hover {
    color: white !important;
  }
  
  /* Even more specific targeting for the contact button */
  #hero .hero-buttons .btn-outline-primary[href="#contact"],
  #hero .hero-buttons .btn-outline-primary[data-i18n="hero-cta-contact"] {
    color: var(--text-color) !important;
  }
  
  /* Specific rules for each button type in hero section on mobile */
  #hero .hero-buttons .btn-primary {
    color: white !important;
  }
  
  /* Force the outline button to have the correct text color */
  #hero .hero-buttons .btn-outline-primary:not(:hover) {
    color: var(--text-color) !important;
    background: transparent !important;
  }
  
  /* More specific targeting to override Bootstrap defaults */
  #hero .hero-buttons .btn:not(.btn-primary) {
    color: var(--text-color) !important;
  }
  
  /* Ensure primary button keeps white text */
  #hero .hero-buttons .btn-primary {
    color: white !important;
  }
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  background: 
    linear-gradient(135deg, color-mix(in srgb, var(--bg-color) 90%, var(--primary-color) 10%) 0%, var(--bg-color) 100%),
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary-color) 7%, transparent 93%) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary-color) 7%, transparent 93%) 0%, transparent 20%);
  background-attachment: fixed;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary-color) 10%, transparent 90%) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary-color) 10%, transparent 90%) 0%, transparent 20%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.contact-section>.container {
  position: relative;
  z-index: 1;
}

.contact-info {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-form-container {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-section a:hover {
  color: white;
}

.social-links a {
  display: inline-block;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
  margin: 0 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
  border-color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-logo-container {
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  max-height: 50px;
  display: block;
  /* Removed filter since we now have a white background container */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Decorative Elements */
.decorative-element {
  position: fixed;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  animation: float 15s infinite ease-in-out;
  max-width: 300px;
  max-height: 300px;
  width: 15vw;
  height: 15vw;
  min-width: 100px;
  min-height: 100px;
  border-radius: 50%;
}

.decorative-circle {
  background: var(--primary-color);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.decorative-circle-2 {
  background: var(--primary-hover);
  bottom: 15%;
  left: 10%;
  opacity: 0.1;
  animation-delay: -5s;
}

/* Hide decorative elements on small screens to prevent width issues */
@media (max-width: 768px) {
  .decorative-element {
    display: none;
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-20px, -20px) rotate(5deg);
  }

  50% {
    transform: translate(0, -40px) rotate(0deg);
  }

  75% {
    transform: translate(20px, -20px) rotate(-5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
  border: 3px solid white;
}

.whatsapp-btn:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Main Container */
.main-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* RTL Specific Adjustments */
[dir="rtl"] .navbar-nav {
  margin-right: auto;
}

[dir="rtl"] .navbar-nav .nav-link {
  margin-right: 15px;
  margin-left: 0;
}

[dir="ltr"] .navbar-nav {
  margin-left: auto;
}

[dir="ltr"] .navbar-nav .nav-link {
  margin-left: 15px;
  margin-right: 0;
}

[dir="rtl"] .me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .ms-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

[dir="ltr"] .me-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

[dir="ltr"] .ms-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

/* Mobile Logo Alignment */
@media (max-width: 991.98px) {
  .navbar {
    display: flex;
    align-items: center;
  }
  
  .navbar-brand {
    margin-left: auto; /* Push logo to the right */
  }
  
  .navbar-collapse {
    width: 100%;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  /* For RTL - adjust alignment to prevent overlap */
  [dir="rtl"] .navbar {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
  }
  
  [dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: auto;
    flex: 0 0 auto;
  }
  
  [dir="rtl"] .navbar-toggler {
    margin-right: 1rem;
    margin-left: 0;
    flex: 0 0 auto;
    z-index: 1002;
  }
  
  [dir="rtl"] .navbar-collapse {
    justify-content: flex-end;
    flex: 1 1 auto;
  }
  
  /* Ensure proper alignment when menu is expanded */
  .navbar-collapse.collapse.show {
    text-align: right;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.9rem;
  }

  .hero-section {
    padding-top: 120px;
    text-align: center;
  }

  .hero-section .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .contact-section .row>div:first-child {
    margin-bottom: 2rem;
  }

  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    margin: 1rem 0 !important;
  }

  .language-toggle,
  .theme-toggle {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }
}