/* CSS Custom Properties for consistent theming */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #4a90e2;
  --accent-color: #f39c12;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #f1c40f;
  --info-color: #3498db;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --line-height-base: 1.6;

  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 1rem;

  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

/* RTL Support */
.lang-ar {
  direction: rtl;
  text-align: right;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}

h5,
h3,
h4 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col-md-6,
.col-lg-4,
.col-lg-8 {
  padding: 0 0.75rem;
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: var(--font-size-base);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(30, 58, 120, 0.85) 0%,
      rgba(41, 82, 149, 0.8) 30%,
      rgba(52, 106, 178, 0.75) 70%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    url("../images/bg.jpeg") center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  /* position: relative; */
  z-index: 2;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-text {
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-decorative {
  position: relative;
  width: 300px;
  height: 300px;
}

.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.element-2 {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  animation-delay: 2s;
}

.element-3 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

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

@media (max-width: 768px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-decorative {
    width: 200px;
    height: 200px;
  }

  .floating-element {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

.hero-logo {
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease-out;
  position: absolute;
  top: 30px;
  left: 60px;
}

.hero-logo-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(30, 58, 120, 0.4),
    0 0 0 8px rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

.hero-logo-img:hover {
  transform: scale(1.1);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(30, 58, 120, 0.6),
    1px 1px 3px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
  color: #edf8ef;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(30, 58, 120, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
  color: #edf8ef;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    min-width: 200px;
  }
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-color);
}

.about-section,
.services-section,
.why-section,
.contact-section,
.products-section {
  padding: 5rem 0;
}

.about-section {
  background-color: var(--gray-100);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
}

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

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

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

/* Page Header */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.breadcrumb {
  display: flex;
  list-style: none;
  justify-content: center;
  margin-top: 1rem;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 0.5rem;
}

.breadcrumb-item.active {
  color: var(--white);
}

.breadcrumb-item a {
  color: inherit;
}

/* Products Table */
.products-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.products-table th {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.products-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.product-image {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-name h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.price {
  color: var(--success-color);
  font-weight: 600;
}

.price-contact {
  color: var(--accent-color);
  font-style: italic;
}

/* Mobile Products */
.products-mobile {
  display: none;
}

@media (max-width: 768px) {
  .products-table-container {
    display: none;
  }

  .products-mobile {
    display: block;
  }

  .product-card-mobile {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
  }

  .product-image-mobile {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }

  .product-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info-mobile {
    padding: 1rem;
  }

  .detail-item {
    margin-bottom: 0.5rem;
  }
}

/* Contact Form */
.contact-form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.btn-submit {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Contact Info */
.contact-info-container {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  height: fit-content;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-link,
.whatsapp-link {
  color: var(--primary-color);
  font-weight: 500;
}

.whatsapp-link {
  color: #25d366;
}

/* Business Hours */
.business-hours {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.business-hours h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.business-hours ul {
  list-style: none;
}

.business-hours li {
  padding: 0.25rem 0;
  color: var(--gray-700);
}

/* Map */
.map-section {
  padding: 3rem 0;
  background-color: var(--gray-100);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-link {
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.lang-link:hover,
.lang-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-600);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid var(--success-color);
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid var(--danger-color);
}

/* Error Page */
.error-section {
  padding: 5rem 0;
  text-align: center;
}

.error-content {
  max-width: 500px;
  margin: 0 auto;
}

.error-image {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

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

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

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Loading animations */
.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }
}

/* Single Page Layout Styles */
.single-page-content {
  scroll-behavior: smooth;
}

/* Floating Language Switcher */
.language-switcher-float {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.language-toggle {
  background: rgba(44, 90, 160, 0.9);
  color: white;
  border: none;
  padding: 18px 26px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background: rgba(44, 90, 160, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.language-switcher-float.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 12px;
  font-size: 14px;
}

.language-option:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.language-option.active {
  background-color: var(--primary-color);
  color: white;
}

.flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .language-switcher-float {
    top: 10px;
    right: 10px;
  }

  .language-toggle {
    padding: 10px 12px;
    font-size: 13px;
  }

  .language-dropdown {
    min-width: 180px;
  }
}

.hero-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-logo-img {
  max-width: 200px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.smooth-scroll {
  scroll-behavior: smooth;
}

.footer-section {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition-base);
}

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

.footer-section-content {
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-600);
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-300);
}

/* Section spacing for single page */
section {
  scroll-margin-top: 2rem;
}

/* Hide page headers and breadcrumbs since we don't need them */
.page-header {
  display: none;
}

.breadcrumb {
  display: none;
}
