/* ============================================
   موقع شركة المتألق الأفضل - أنماط CSS
   ============================================ */

/* استيراد خطوط عربية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* متغيرات CSS */
:root {
  --primary-color: #003D7A;
  --secondary-color: #FF8C00;
  --dark-bg: #1a1a1a;
  --light-bg: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* إعادة تعيين عام */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  direction: rtl;
  line-height: 1.6;
}

/* الحاوية الرئيسية */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   الهيدر والملاحة
   ============================================ */

header {
  background-color: var(--light-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  height: 50px;
  width: auto;
  display: flex;
  align-items: center;
}

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

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  font-size: 14px;
}

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

.contact-btn {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-btn:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, rgba(0, 61, 122, 0.8) 0%, rgba(255, 140, 0, 0.8) 100%),
              url('../images/hero-luxury-cars.jpg') center/cover;
  background-attachment: fixed;
  color: white;
  padding: 150px 20px;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero .logo {
  margin-bottom: 30px;
  justify-content: center;
}

.hero h1 {
  font-size: 60px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero p {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: #e67e00;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: #f5f5f5;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

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

/* ============================================
   الأقسام العامة
   ============================================ */

section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* ============================================
   قسم من نحن
   ============================================ */

.about {
  background-color: #f9f9f9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================
   قسم السيارات والشاحنات
   ============================================ */

.cars-grid,
.trucks-grid,
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.product-features {
  list-style: none;
  margin-bottom: 15px;
}

.product-features li {
  font-size: 13px;
  color: var(--text-dark);
  padding: 5px 0;
  padding-right: 20px;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.product-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.product-btn:hover {
  background-color: #e67e00;
}

/* ============================================
   قسم لماذا تختارنا
   ============================================ */

.why-us {
  background: linear-gradient(135deg, var(--primary-color) 0%, #005a9f 100%);
  color: white;
}

.why-us .section-title {
  color: white;
}

.why-us .section-title::after {
  background-color: var(--secondary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 14px;
  opacity: 0.9;
}

/* ============================================
   قسم التواصل
   ============================================ */

.contact {
  background-color: #f9f9f9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: #e67e00;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.info-label {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.info-value {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
}

.info-value a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.info-value a:hover {
  text-decoration: underline;
}

/* ============================================
   الفوتر
   ============================================ */

footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 50px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-section p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 15px;
}

.legal-info {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

/* ============================================
   أزرار التواصل السريع
   ============================================ */

.quick-contact {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}

.quick-contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
}

.phone-btn {
  background-color: #0066cc;
}

.phone-btn:hover {
  background-color: #0052a3;
  transform: scale(1.1);
}

/* ============================================
   التأثيرات والرسوم المتحركة
   ============================================ */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/* ============================================
   التجاوب (Responsive)
   ============================================ */

@media (max-width: 768px) {
  nav {
    gap: 15px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .quick-contact {
    left: 10px;
    bottom: 10px;
  }

  .quick-contact-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 0;
  }

  .header-content {
    gap: 10px;
  }

  nav {
    gap: 10px;
    font-size: 11px;
  }

  .logo {
    height: 40px;
  }

  .hero {
    padding: 100px 15px;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .cars-grid,
  .trucks-grid,
  .parts-grid,
  .features-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }
}
