@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --red: #E53935;
  --red-dark: #C62828;
  --red-light: #EF5350;
  --black: #0A0A0A;
  --charcoal: #141414;
  --surface: #1A1A1A;
  --white: #FFFFFF;
  --gray-300: #BDBDBD;
  --gray-400: #9E9E9E;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }
[dir="ltr"] body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::selection { background: rgba(229,57,53,0.3); color: white; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media(min-width:1024px){ .container { padding: 0 48px; } }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; transition: all 0.3s;
}
.header.scrolled {
  background: rgba(10,10,10,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,57,53,0.08);
}
.header-topline {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0.6;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.logo-terminal { font-family: 'Courier New', monospace; font-size: 10px; color: var(--gray-600); letter-spacing: 2px; }
.logo-brand { font-size: 22px; font-weight: 900; color: white; letter-spacing: 2px; }
.logo-tagline { font-size: 11px; font-weight: 500; color: var(--red); letter-spacing: 3px; margin-top: 2px; }
[dir="rtl"] .logo-brand,
[dir="rtl"] .logo-terminal { letter-spacing: 0; }

/* Nav */
.nav { display: none; }
@media(min-width:768px){
  .nav { display: flex; align-items: center; gap: 28px; }
}
.nav a {
  color: var(--gray-300); text-decoration: none; font-size: 15px; font-weight: 600;
  position: relative; transition: color 0.15s; background: none; border: none; cursor: pointer;
}
.nav a:hover { color: white; }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 0.25s; transform-origin: left;
}
[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover::after { transform: scaleX(1); }

/* Header right */
.header-right { display: none; align-items: center; gap: 16px; }
@media(min-width:768px){ .header-right { display: flex; } }
.lang-btn {
  color: var(--gray-500); text-decoration: none; font-size: 14px; font-weight: 400;
  padding: 2px 6px; transition: color 0.15s;
}
.lang-btn.active { color: white; font-weight: 700; border-bottom: 2px solid var(--red); }
.lang-btn:hover:not(.active) { color: var(--gray-300); }
.lang-sep { color: var(--gray-700); font-size: 12px; }

.badge-247 {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white; padding: 8px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 700; box-shadow: 0 4px 24px rgba(229,57,53,0.25);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; }

/* Mobile */
.mobile-toggle { display: block; background: none; border: none; color: white; cursor: pointer; }
@media(min-width:768px){ .mobile-toggle { display: none; } }
.mobile-right { display: flex; align-items: center; gap: 12px; }
@media(min-width:768px){ .mobile-right { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; background: rgba(10,10,10,0.98); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; cursor: pointer; }
[dir="rtl"] .mobile-menu-close { right: auto; left: 20px; }
.mobile-menu a {
  color: white; text-decoration: none; font-size: 24px; font-weight: 600;
  background: none; border: none; cursor: pointer;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-lang { display: flex; gap: 12px; margin-top: 16px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
@media(min-width:1024px){ .section { padding: 120px 0; } }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  color: var(--red); text-transform: uppercase;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section-title {
  font-size: 32px; font-weight: 800; color: white;
  letter-spacing: -1.5px; line-height: 1.1; margin-top: 16px;
}
@media(min-width:1024px){ .section-title { font-size: 48px; } }
[dir="rtl"] .section-title { letter-spacing: 0; }

/* ===== HERO ===== */
.hero {
  min-height: 100dvh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 50% 0%, #1a0505 0%, var(--black) 60%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-stripe {
  position: absolute; top: 0; right: 0; width: 35%; height: 100%;
  background: linear-gradient(180deg, rgba(229,57,53,0.7) 0%, rgba(229,57,53,0.15) 100%);
  clip-path: polygon(55% 0, 75% 0, 55% 100%, 35% 100%); pointer-events: none;
}
[dir="rtl"] .hero-stripe { right: auto; left: 0; clip-path: polygon(25% 0, 45% 0, 65% 100%, 45% 100%); }

.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 48px; position: relative; z-index: 1; }
@media(min-width:1024px){ .hero-inner { flex-direction: row; gap: 32px; } }

.hero-content { flex: 1; text-align: center; max-width: 600px; }
@media(min-width:1024px){ .hero-content { text-align: left; } }
[dir="rtl"] .hero-content { text-align: center; }
@media(min-width:1024px){ [dir="rtl"] .hero-content { text-align: right; } }

.hero-title { font-size: 48px; font-weight: 900; line-height: 0.95; letter-spacing: -2px; }
@media(min-width:1024px){ .hero-title { font-size: 72px; } }
.hero-subtitle { font-size: 20px; font-weight: 600; color: var(--gray-300); margin-top: 16px; }
@media(min-width:1024px){ .hero-subtitle { font-size: 24px; } }
.hero-tagline { font-size: 18px; color: var(--gray-400); margin-top: 12px; }
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle { letter-spacing: 0; }

/* Terminal lines */
.terminal-block { display: none; margin-top: 32px; margin-bottom: 32px; padding-left: 12px; border-left: 1px solid var(--red); }
[dir="rtl"] .terminal-block { padding-left: 0; padding-right: 12px; border-left: none; border-right: 1px solid var(--red); }
@media(min-width:640px){ .terminal-block { display: block; } }
.terminal-line { font-family: 'Courier New', monospace; font-size: 11px; color: var(--red); line-height: 1.8; opacity: 0.7; }
[dir="rtl"] .terminal-line { letter-spacing: 0; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* CTA Buttons */
.btn-row { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; align-items: center; }
@media(min-width:640px){ .btn-row { flex-direction: row; } }
@media(min-width:1024px){ .btn-row { justify-content: flex-start; } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white; border: none; border-radius: 100px;
  padding: 16px 32px; font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 24px rgba(229,57,53,0.25);
  transition: all 0.25s;
}
.btn-primary:hover { background: var(--red-light); box-shadow: 0 8px 40px rgba(229,57,53,0.35); transform: scale(1.03); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: white; border: 2px solid white; border-radius: 100px;
  padding: 14px 30px; font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.25s;
}
.btn-secondary:hover { background: white; color: var(--black); }

/* Hero image */
.hero-image-wrap { flex: 1; display: flex; justify-content: center; }
@media(min-width:1024px){ .hero-image-wrap { justify-content: flex-end; } }
.hero-image { max-width: 100%; width: 550px; border-radius: 8px; filter: brightness(1.1) contrast(1.05); }

/* ===== SERVICES ===== */
.services-section { background: var(--charcoal); position: relative; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
@media(min-width:1024px){ .section-header { margin-bottom: 96px; } }

.services-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media(min-width:640px){ .services-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
  transition: all 0.25s;
}
.service-card:hover {
  border-color: rgba(229,57,53,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,57,53,0.15);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; stroke: white; stroke-width: 2; fill: none; }
.service-card h3 { font-size: 20px; font-weight: 700; color: white; margin-bottom: 8px; }
[dir="rtl"] .service-card h3 { letter-spacing: 0; }
.service-card p { font-size: 16px; color: var(--gray-400); line-height: 1.6; }

/* ===== VEHICLES ===== */
.vehicles-section { background: var(--black); position: relative; overflow: hidden; }
#signal-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: all;
}
.vehicles-grid { display: grid; gap: 24px; grid-template-columns: 1fr; position: relative; z-index: 1; }
@media(min-width:640px){ .vehicles-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .vehicles-grid { grid-template-columns: 1fr 1fr 1fr; } }

.vehicle-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
  transition: all 0.25s;
}
.vehicle-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,57,53,0.15);
  transform: translateY(-6px);
}
.vehicle-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.vehicle-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: brightness(1.1); }
.vehicle-card:hover .vehicle-img { transform: scale(1.05); }
.vehicle-badge-count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: white; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(4px);
}
.vehicle-content { padding: 24px; }
.vehicle-cat {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; background: rgba(229,57,53,0.15); color: var(--red);
}
.vehicle-name { font-size: 20px; font-weight: 700; color: white; margin-top: 12px; }
.vehicle-features { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.vehicle-features span { font-size: 13px; color: var(--gray-400); }
.vehicle-features .label { color: var(--gray-500); }
.vehicle-card .btn-primary { width: 100%; margin-top: 20px; padding: 12px; font-size: 14px; justify-content: center; }

/* ===== WHY CHOOSE US ===== */
.why-section { background: var(--charcoal); position: relative; overflow: hidden; }
.why-stripe {
  position: absolute; top: 0; left: 0; width: 20%; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, rgba(229,57,53,0.5) 0%, transparent 100%);
  clip-path: polygon(0 0, 30% 0, 15% 100%, 0 100%);
}
.why-inner { display: flex; flex-direction: column; gap: 64px; position: relative; z-index: 1; }
@media(min-width:1024px){ .why-inner { flex-direction: row; gap: 48px; } }
.why-left { flex: 1; max-width: 500px; }
.why-right { flex: 1; }
.features-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media(min-width:640px){ .features-grid { grid-template-columns: 1fr 1fr; } }
.feature-num {
  font-size: 48px; font-weight: 900;
  -webkit-text-stroke: 1px rgba(229,57,53,0.3); color: transparent;
}
.feature-item h3 { font-size: 20px; font-weight: 700; color: white; margin-top: 16px; }
[dir="rtl"] .feature-item h3 { letter-spacing: 0; }
.feature-item p { font-size: 15px; color: var(--gray-400); margin-top: 8px; line-height: 1.6; }
.feature-item svg { width: 32px; height: 32px; stroke: var(--red); fill: none; stroke-width: 2; margin-top: 16px; }

/* ===== CONTACT ===== */
.contact-section { background: var(--black); position: relative; }
.contact-inner { display: flex; flex-direction: column; gap: 64px; position: relative; z-index: 1; }
@media(min-width:1024px){ .contact-inner { flex-direction: row; gap: 48px; } }
.contact-form { flex: 1; }
@media(min-width:1024px){ .contact-form { max-width: 55%; } }

.form-row { display: grid; gap: 20px; margin-bottom: 20px; }
@media(min-width:640px){ .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-300); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px 18px; color: white; font-size: 16px;
  font-family: inherit; outline: none; transition: all 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,0.1); }
.form-group select { cursor: pointer; appearance: none; }
[dir="rtl"] .form-group select { background-position: left 1rem center; }
[dir="ltr"] .form-group select { background-position: right 1rem center; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E53935' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.contact-info { flex: 1; }
.contact-info h3 { font-size: 24px; font-weight: 700; color: white; margin-bottom: 24px; }
.info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface); border-radius: 12px; padding: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}
.info-card-inner { display: flex; align-items: flex-start; gap: 16px; }
.info-card svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.info-card svg.stroke-red { stroke: var(--red); fill: none; stroke-width: 2; }
.info-card svg.whatsapp { stroke: #25D366; fill: none; stroke-width: 2; }
.info-card .label { font-size: 14px; color: var(--gray-500); margin-bottom: 4px; }
.info-card a, .info-card .value { font-size: 18px; font-weight: 600; color: white; text-decoration: none; }
.info-card a:hover { color: var(--red); }
.info-card .sub { font-size: 14px; color: var(--gray-400); margin-top: 4px; }

.map-wrap { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); position: relative; }
.map-wrap iframe { width: 100%; height: 250px; border: 0; filter: invert(90%) hue-rotate(180deg); }
.open-maps {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08); color: var(--gray-300);
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all 0.3s;
}
.open-maps:hover { color: white; border-color: var(--red); background: rgba(229,57,53,0.05); }

.toast {
  position: fixed; top: 90px; right: 24px; padding: 16px 24px; border-radius: 12px;
  font-weight: 600; z-index: 3000; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: slideDown 0.4s ease;
}
[dir="rtl"] .toast { right: auto; left: 24px; }
.toast-success { background: #1B5E20; color: white; }
.toast-error { background: var(--red-dark); color: white; }
@keyframes slideDown { from { opacity:0; transform: translateY(-20px); } to { opacity:1; transform: translateY(0); } }

/* ===== FOOTER ===== */
.footer {
  background: #0D0D0D; border-top: 1px solid rgba(229,57,53,0.1);
  padding-top: 64px; padding-bottom: 32px; position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.footer-grid { display: grid; gap: 48px; text-align: center; }
@media(min-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr 1fr; text-align: left; } }
[dir="rtl"] .footer-grid { text-align: center; }
@media(min-width:768px){ [dir="rtl"] .footer-grid { text-align: right; } }

.footer-logo-brand { font-size: 22px; font-weight: 900; color: white; letter-spacing: 2px; }
.footer-logo-tagline { font-size: 11px; color: var(--red); letter-spacing: 3px; }
.footer-desc { font-size: 14px; color: var(--gray-500); margin-top: 16px; }
.socials { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }
@media(min-width:768px){ .socials { justify-content: flex-start; } }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; text-decoration: none;
}
.social-icon:hover { background: var(--red); transform: scale(1.1); }
.social-icon svg { width: 18px; height: 18px; stroke: var(--gray-400); fill: none; stroke-width: 2; }
.social-icon:hover svg { stroke: white; }

.footer h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-400); text-decoration: none; font-size: 14px;
  background: none; border: none; cursor: pointer; transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-contact-list { list-style: none; }
.footer-contact-list li { margin-bottom: 10px; }
.footer-contact-list a { color: var(--gray-400); text-decoration: none; font-size: 14px; }
.footer-contact-list a:hover { color: white; }
.footer-contact-list span { color: var(--gray-500); font-size: 14px; }

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
@media(min-width:640px){ .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 13px; color: var(--gray-600); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  text-decoration: none; transition: all 0.3s;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
.whatsapp-pulse {
  position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #25D366;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing { 0%{transform:scale(1);opacity:0.5} 100%{transform:scale(1.5);opacity:0} }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== RTL FIXES ===== */
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .badge-247 { letter-spacing: 0 !important; }
[dir="rtl"] .lang-btn { letter-spacing: 0 !important; }
[dir="rtl"] .vehicle-cat { letter-spacing: 0 !important; }
