/* Multilingual Landing Page Styles */

/* Font imports for different languages */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap'); /* Arabic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap'); /* English/Spanish */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); /* French */

:root {
  --primary-color: #5755d9;
  --secondary-color: #f1f3f4;
  --success-color: #32b643;
  --warning-color: #ffb700;
  --error-color: #e85600;
  --text-color: #3b4351;
  --light-gray: #f8f9fa;
}

/* Language-specific fonts */
html[lang="ar"] {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="en"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="fr"] {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="es"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html[dir="rtl"] .navbar-section:first-child {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .navbar-section:last-child {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .hero-buttons .btn {
  margin-left: 0;
  margin-right: 1rem;
}

html[dir="rtl"] .hero-buttons .btn:last-child {
  margin-right: 0;
}

html[dir="rtl"] .feature-icon {
  margin-left: 0;
  margin-right: 1rem;
}

/* Base styles */
body {
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation */
.landing-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: white !important;
  text-decoration: none;
}

.navbar-brand i {
  margin-right: 0.5rem;
  font-size: 1.4rem;
}

html[dir="rtl"] .navbar-brand i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  margin-right: 1rem;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Dashboard Preview */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-preview {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.preview-header {
  background: #f8f9fa;
  padding: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
}

.preview-dots {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

html[dir="rtl"] .preview-dots {
  margin-right: 0;
  margin-left: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.preview-title {
  font-weight: 600;
  color: var(--text-color);
}

.preview-content {
  display: flex;
  height: 300px;
}

.preview-sidebar {
  width: 200px;
  background: #f8f9fa;
  padding: 1rem;
  border-right: 1px solid #e9ecef;
}

html[dir="rtl"] .preview-sidebar {
  border-right: none;
  border-left: 1px solid #e9ecef;
}

.sidebar-item {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.sidebar-item.active {
  background: var(--primary-color);
  color: white;
}

.sidebar-item i {
  margin-right: 0.8rem;
  width: 16px;
}

html[dir="rtl"] .sidebar-item i {
  margin-right: 0;
  margin-left: 0.8rem;
}

.preview-main {
  flex: 1;
  padding: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

html[dir="rtl"] .stat-icon {
  margin-right: 0;
  margin-left: 1rem;
}

.stat-icon.blue { background: #e3f2fd; color: #1976d2; }
.stat-icon.green { background: #e8f5e8; color: #388e3c; }
.stat-icon.orange { background: #fff3e0; color: #f57c00; }
.stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.stat-name {
  font-size: 0.8rem;
  color: #666;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

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

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.feature-description {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons .btn {
  margin: 0 0.5rem;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Footer */
.footer-section {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact h4 {
  color: white;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: #bdc3c7;
}

.contact-item i {
  margin-right: 0.8rem;
  width: 20px;
}

html[dir="rtl"] .contact-item i {
  margin-right: 0;
  margin-left: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: #bdc3c7;
}

/* Language Switcher */
.dropdown .menu {
  min-width: 120px;
}

.dropdown .menu .menu-item a {
  padding: 0.5rem 1rem;
  display: block;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown .menu .menu-item a:hover {
  background-color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .dashboard-preview {
    transform: none;
    max-width: 100%;
  }
  
  .preview-content {
    flex-direction: column;
    height: auto;
  }
  
  .preview-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .hero-buttons .btn,
  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .navbar-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .features-section,
  .cta-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* RTL specific animations */
html[dir="rtl"] .slide-in-left {
  transform: translateX(50px);
}

html[dir="rtl"] .slide-in-right {
  transform: translateX(-50px);
}

html[dir="rtl"] .slide-in-left.visible,
html[dir="rtl"] .slide-in-right.visible {
  transform: translateX(0);
}
