:root {
  --bg-dark: #030610;
  --bg-card: rgba(14, 20, 38, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-purple: #7c4dff;
  --accent-cyan: #00e5ff;
  --text-main: #f5f6fa;
  --text-muted: #8b949e;
  --accent-glow: rgba(0, 229, 255, 0.25);
  --success: #00e676;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Specific adjusts */
html[dir="rtl"] body {
  font-family: 'Outfit', 'Cairo', sans-serif;
}

/* Background gradient blobs */
.bg-glow {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120vw;
  height: 120vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(124, 77, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(3, 6, 16, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 100;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-top: -3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-cyan);
}

/* Language selector */
.lang-selector {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #651fff);
  color: #fff;
  box-shadow: 0 5px 20px rgba(124, 77, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 77, 255, 0.6);
}

.btn-whatsapp {
  background: #25d366;
  color: #030b05;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 60px;
  position: relative;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 2px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Jetour Section */
.jetour-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: -40px;
  margin-bottom: 60px;
}

.jetour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.jetour-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.jetour-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 77, 255, 0.25);
}

.jetour-img-container {
  width: 100%;
  height: 220px;
  background: #090e1d;
  overflow: hidden;
  position: relative;
}

.jetour-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.jetour-card:hover .jetour-img-container img {
  transform: scale(1.05);
}

.jetour-card-body {
  padding: 30px;
}

.jetour-card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.jetour-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.jetour-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.feature-check {
  color: var(--success);
  font-weight: bold;
}

/* ECU Section */
.ecu-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.ecu-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.ecu-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.ecu-brands-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ecu-brand-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ecu-brand-arrow {
  color: var(--accent-cyan);
}

.ecu-graphics {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ecu-glowing-chip {
  width: 200px;
  height: 200px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.25) 0%, transparent 70%);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 30px rgba(124, 77, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  letter-spacing: 2px;
  animation: float 4s ease-in-out infinite;
}

.chip-text-main {
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.chip-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

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

/* Contact Section */
.contact-section {
  text-align: center;
  max-width: 800px;
  padding-bottom: 120px;
}

.contact-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 5%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 15px 5%;
    gap: 15px;
  }
  
  nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .ecu-showcase {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  
  .ecu-graphics {
    display: none;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
