/* ========================================
   مرسال الجديد لتقنية المعلومات
   Stylesheet - Arabic RTL
   ======================================== */

:root {
  --primary-dark: #003d82;
  --primary-light: #0066cc;
  --sky-blue: #00a8e8;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* ========== Header & Navigation ========== */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--sky-blue);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, rgba(0, 61, 130, 0.75) 0%, rgba(0, 102, 204, 0.75) 100%), url('../images/hero-advertising-background.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-weight: 600;
}

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

.btn-primary:hover {
  background-color: #0088b8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--light-gray);
  transform: translateY(-3px);
}

/* ========== Sections ========== */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 20px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--sky-blue));
}

/* ========== About Section ========== */
.about {
  background-color: var(--light-gray);
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-gray);
  text-align: justify;
}

/* ========== Features Section ========== */
.features {
  background-color: var(--white);
}

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

.feature-card {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--sky-blue);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ========== Products Section ========== */
.products {
  background-color: var(--white);
}

.products-category {
  margin-bottom: 60px;
}

.products-category h3 {
  font-size: 1.8rem;
  color: var(--primary-light);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--sky-blue);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--sky-blue);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-specs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  padding: 10px;
  background-color: var(--light-gray);
  border-radius: 5px;
  line-height: 1.6;
}

.product-specs strong {
  color: var(--primary-light);
}

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

.btn-order:hover {
  background-color: var(--primary-light);
}

/* ========== Brands Section ========== */
.brands {
  background-color: var(--light-gray);
}

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

.brand-logo {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 168, 232, 0.3);
}

.brand-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ========== Testimonials Section ========== */
.testimonials {
  background-color: var(--white);
}

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

.testimonial-card {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 10px;
  border-right: 4px solid var(--sky-blue);
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ========== FAQ Section ========== */
.faq {
  background-color: var(--light-gray);
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
  padding: 20px;
  background-color: var(--primary-light);
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--primary-dark);
}

.faq-answer {
  padding: 20px;
  display: none;
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle {
  font-size: 1.5rem;
}

/* ========== Contact Section ========== */
.contact {
  background-color: var(--white);
}

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

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

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--sky-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--dark-gray);
}

.contact-text a {
  color: var(--sky-blue);
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ========== Legal Section ========== */
.legal {
  background-color: var(--light-gray);
}

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

.legal-card {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--primary-light);
}

.legal-card h4 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.legal-card p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== Footer ========== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========== Back to Top Button ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--sky-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
}

.back-to-top.show {
  display: flex;
}

/* ========== Animations ========== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  section h2 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 15px;
    font-size: 0.9rem;
  }

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

  .map-container iframe {
    height: 300px;
  }

  .features-grid,
  .products-grid,
  .brands-grid,
  .testimonials-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 40px 15px;
  }

  section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 8px;
  }

  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
