/* Alfa AutoTrade Website Styles */

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

/* Remove default focus outlines but keep accessibility */
*:focus {
  outline: none;
}

/* Remove weird borders on click/focus */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Remove borders on body and html */
html, body {
  border: none;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

/* Remove borders from all interactive elements */
button, input, select, textarea, a, div, section, main, footer, header, nav {
  border: none !important;
  outline: none !important;
}

/* Restore necessary borders for form elements */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* Remove any weird webkit borders */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

/* Design System - CSS Variables */
:root {
  /* Alfa Gruppe Color Palette */
  --primary-color: #027a8f;
  /* Teal Blue - Adjusted for WCAG AA compliance (4.51:1 contrast ratio) */
  --primary-hover: #026d7f;
  /* Darker Teal for hover states */
  --secondary-color: #E30613;
  /* Accent Red */
  --text-color: #333333;
  /* Dark Grey */
  --light-bg: #F4F6F8;
  /* Very light grey */
  --white: #FFFFFF;
  /* Pure white */

  /* Typography */
  --font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing (German spacious aesthetic) - Generous whitespace for clean, professional look */
  --section-padding: 80px 0;
  /* Generous vertical padding for all sections */
  --container-padding: 0 20px;
  /* Horizontal padding for mobile responsiveness */
  --card-padding: 30px;
  /* Base card padding (can be overridden for more space) */

  /* Effects */
  --border-radius-small: 2px;
  /* Buttons */
  --border-radius-card: 4px;
  /* Cards */
  --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-base: all 0.3s ease;

  /* Accessibility - Focus indicator color */
  --focus-color: #ffc107;
  /* High contrast yellow for focus states */
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  padding-top: 70px; /* Account for fixed navbar */
}

/* ===================================
   ACCESSIBILITY STYLES
   =================================== */

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles - WCAG 2.1 Requirement 2.4.7 */
/* All interactive elements get a visible focus indicator */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* Remove default outline and apply custom focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* Ensure focus is visible on navigation links */
.nav-links a:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Focus styles for buttons */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-white:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* Focus styles for form elements */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 131, 153, 0.1);
}

/* Focus styles for language switcher */
.language-switcher:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}



/* Form help text and error messages */
.form-help {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

.error-message {
  font-size: 14px;
  color: var(--secondary-color);
  margin-top: 4px;
  font-weight: 500;
  display: none;
}

.error-message.show {
  display: block;
}

/* Enhanced focus indicators for better visibility */
.service-card-link:focus,
.brand-card:focus,
.platform-card:focus,
.initiative-card:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: var(--border-radius-card);
}

/* Improved focus for navigation links */
.nav-links a:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* Enhanced button focus states */
.btn:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.2);
}

/* Breadcrumb accessibility improvements */
.breadcrumb a:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Video iframe focus enhancement */
.video-wrapper iframe:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .brand-card,
  .info-panel,
  .platform-card,
  .initiative-card {
    border: 2px solid var(--text-color);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
  
  .skip-link {
    border: 2px solid var(--white);
  }
}

/* Reduced motion preferences - enhanced */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .brand-card:hover,
  .info-panel:hover,
  .platform-card:hover,
  .initiative-card:hover,
  .btn:hover {
    transform: none;
  }
  
  .video-wrapper iframe {
    animation: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography - Alfa Gruppe Polish */
h1,
h2 {
  font-weight: bold;
  color: var(--primary-color);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Container - Generous spacing for German corporate aesthetic */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Ensure consistent container width across all sections */
.services .container,
.process .container,
.footer .container {
  max-width: 1200px;
}

/* Navigation Component */
.navbar {
  background-color: var(--white);
  color: var(--text-color);
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-base);
}

.nav-brand:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.nav-brand:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-brand:active {
  outline: none;
  border: none;
  box-shadow: none;
  transform: scale(0.98);
}

.nav-brand:focus:not(:focus-visible) {
  outline: none;
}

/* Logo styling for visibility */
.nav-brand img {
  height: 60px;
  /* Remove background for clean logo on white navbar */
  transition: var(--transition-base);
}

.nav-brand img:hover {
  opacity: 0.8;
}

/* Brand text styling - Always display in English */
.brand-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color);
  letter-spacing: 0.5px;
  direction: ltr !important;
  font-family: 'Arial', sans-serif;
}

/* Ensure brand text color is preserved in link */
.nav-brand .brand-text {
  color: var(--text-color);
}

/* Phone link styling */
.phone-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-base);
}

.phone-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Navbar phone styling */
.nav-phone {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.nav-phone .phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 5px 8px;
  transition: var(--transition-base);
}

.nav-phone .phone-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.nav-phone .phone-link:hover i {
  color: var(--primary-hover);
}

.nav-phone .phone-link i {
  font-size: 16px;
  color: var(--primary-color);
}

.nav-phone .phone-link span {
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
}

/* Keep phone icon on the left in all languages */
[dir="rtl"] .nav-phone .phone-link {
  flex-direction: row;
  direction: ltr;
}

/* Hide mobile phone item on desktop */
.mobile-phone-item {
  display: none;
}

/* Service logo styling */
.service-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: var(--transition-base);
}

/* Brand new cars (Porsche) - 50% larger */
.service-logo[src*="porsche"] {
  width: 100px;
  height: 100px;
}

/* Mobile.de logo - double size with wider aspect ratio */
.service-logo[src*="mobile_de"] {
  width: 320px;
  height: 200px;
}

/* Initiative logo - moderate size increase */
.service-logo[src*="initiative-logo"] {
  width: 120px;
  height: 120px;
}

.service-card:hover .service-logo {
  transform: scale(1.1);
  opacity: 0.8;
}





/* Ensure hero brand name is always in English */
.hero-brand-name {
  direction: ltr !important;
  font-family: 'Arial', sans-serif;
}

/* Ensure brand name in content is always in English */
.brand-name-english {
  direction: ltr !important;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* Reduce nav spacing on smaller screens before hamburger */
@media (max-width: 900px) {
  .nav-links {
    gap: 20px;
  }
  
  .nav-phone {
    margin: 0 10px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    gap: 15px;
  }
  
  .nav-links a {
    font-size: 15px;
  }
  
  .nav-phone .phone-link {
    font-size: 16px;
  }
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition-base);
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active navigation link styling */
.nav-links a.active {
  font-weight: bold;
  opacity: 1;
}

.nav-links a.active::after {
  width: 100%;
  background-color: var(--secondary-color);
  height: 3px;
}

.language-switcher {
  background-color: var(--white);
  color: var(--text-color);
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-base);
}

.language-switcher:hover {
  background-color: var(--light-bg);
}

.language-switcher option {
  background-color: var(--white);
  color: var(--text-color);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.menu-toggle:hover span {
  background-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(2, 122, 143, 0.3);
}

/* Active state - X animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: var(--primary-color);
}

/* Smooth animation when closing */
.menu-toggle:not(.active) span {
  transform: rotate(0deg) translate(0px, 0px);
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  margin-top: -70px;
  padding-top: 70px;
  background-image: url('../imgs/hero_section.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.6s ease;
}

/* Ensure hero image loads properly */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../imgs/hero_section.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Hero responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    background-position: center;
  }
  
  .hero::before {
    background-position: center;
  }
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(2, 122, 143, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(2, 122, 143, 0.5) 100%
  );
  z-index: 2;
  transition: all 0.4s ease;
}

.hero:hover .hero-overlay {
  opacity: 0.8;
}

/* Simple sliding overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(2, 122, 143, 0.7) 0%,
    rgba(2, 122, 143, 0.5) 70%,
    transparent 100%
  );
  z-index: 2;
  transition: all 0.6s ease;
}

.hero:hover::after {
  transform: translateX(-100px);
  opacity: 0.3;
}

.hero:hover {
  transform: scale(1.02);
}

.hero:hover .hero-content {
  transform: translateY(-10px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

@keyframes heroFloat {
  0% {
    transform: rotate(-15deg) translateY(0px);
  }
  100% {
    transform: rotate(-15deg) translateY(-20px);
  }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 1;
  }
}



.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 40px 20px;
  animation: heroContentPulse 4s ease-in-out infinite;
  transition: all 0.4s ease;
  pointer-events: none;
}

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

/* Disable heavy animations on mobile for performance */
@media (max-width: 768px) {
  .hero::after {
    animation: none;
    transform: rotate(-15deg);
  }
  
  .hero-content {
    animation: none;
  }
  
  .hero-particles::before,
  .hero-particles::after {
    animation: none;
    opacity: 0.3;
  }
  
  /* Disable hover effects on mobile */
  .hero:hover {
    transform: none;
  }
  
  .hero:hover::after {
    transform: rotate(-15deg);
  }
  
  .hero:hover .hero-content {
    transform: none;
  }
}

.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  color: var(--white);
  /* Override for hero section - white on dark background */
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 30px;
  /* Add background for PNG logo visibility on dark hero */
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition-base);
  /* Override any inherited color properties */
  color: initial;
  filter: none;
}

.hero-brand-name {
  font-size: 48px;
  font-weight: bold;
  color: var(--white);
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

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

/* Button Styles */
.btn {
  padding: 12px 30px;
  font-size: 16px;
  font-family: var(--font-family);
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: #c00510;
  border-color: #c00510;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

/* Page Header - For About, Services, Contact pages */
.page-header {
  height: 300px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--container-padding);
}

.page-header .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.page-header h1 {
  font-size: 36px;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 14px;
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 20px;
}

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

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

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

/* Services Section - Generous spacing for corporate aesthetic */
.services {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.services .container {
  max-width: 1200px;
}

.services h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

/* Homepage Three Service Cards Grid */
.services-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
  transition: var(--transition-base);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 400px;
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 40px;
  text-align: center;
  transition: var(--transition-base);
  justify-content: flex-start;
  align-items: center;
}

.service-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  flex-shrink: 0;
}

.service-icon i {
  font-size: 48px;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.service-card .service-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  direction: ltr;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  width: 100%;
}

[dir="rtl"] .service-card .service-subtitle {
  direction: ltr;
  text-align: center;
}

.service-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  text-align: center;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Legacy services-grid for other pages */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}



/* Process Section - Card-based layout matching services section */
.process {
  background-color: var(--white);
  padding: var(--section-padding);
}

.process .container {
  max-width: 1200px;
}

.process h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process-card {
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 30px;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.process-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.process-icon i {
  font-size: 48px;
  color: var(--primary-color);
}

.process-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.process-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
}



/* Footer Component */
.footer {
  background-color: #2c2c2c;
  color: #cccccc;
  padding: 60px 0 30px;
}

.footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-column p {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-column ul li a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-base);
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

/* Footer Icon Styling */
.footer-column p i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 16px;
  min-width: 20px;
  display: inline-block;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  justify-content: flex-start;
}

/* RTL Social Icons - Start from right edge in Arabic */
[dir="rtl"] .social-icons {
  justify-content: flex-end;
  direction: ltr; /* Keep icons in normal order */
}

.social-icons a {
  color: var(--white);
  font-size: 24px;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  color: var(--primary-color);
  background-color: var(--white);
  transform: translateY(-3px);
}

.social-icons a i {
  font-size: 20px;
}



/* RTL (Right-to-Left) Support for Arabic */
[dir="rtl"] {
  direction: rtl;
}

/* RTL Navbar Adjustments */
[dir="rtl"] .navbar .container {
  /* Reverse the flex direction to move logo to right, language selector to left */
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  /* Reverse the navigation links order */
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links a::after {
  /* Adjust the underline animation to start from right */
  left: auto;
  right: 0;
}

/* RTL Hero Section Adjustments */
[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .hero-buttons {
  /* Reverse button order for RTL */
  flex-direction: row-reverse;
}

/* RTL Services Section Adjustments */
[dir="rtl"] .services h2 {
  text-align: center;
  /* Keep centered */
}

[dir="rtl"] .service-card {
  text-align: right;
}

/* RTL Process Section Adjustments */
[dir="rtl"] .process h2 {
  text-align: center;
  /* Keep centered */
}

[dir="rtl"] .process-card {
  text-align: center;
  /* Keep centered for cards */
}

[dir="rtl"] .step-number {
  right: auto;
  left: 15px;
}

/* RTL Footer Adjustments - Desktop Only */
@media (min-width: 577px) {
  [dir="rtl"] .footer-column {
    text-align: right;
  }
  
  [dir="rtl"] .footer-column ul li a:hover {
    transform: translateX(-5px);
  }
  
  [dir="rtl"] .footer-column p i {
    margin-right: 0;
    margin-left: 10px;
  }
  
  /* RTL social icons handled by main rule */
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Mobile: < 768px (hamburger menu)
   Tablet: 768px - 992px
   Desktop: > 992px
   ============================================ */

/* Tablet Breakpoint (max-width: 992px) */
@media (max-width: 992px) {

  /* Services Grid: 2 columns on tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Process Grid: 2 columns on tablet */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Footer: Maintain 3 columns on tablet */
  .footer-grid {
    gap: 30px;
  }
}

/* Mobile Breakpoint (max-width: 768px) - Show hamburger earlier to prevent cluttering */
@media (max-width: 768px) {

  /* Typography adjustments for mobile */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  /* Navbar: Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: none;
  }

  .nav-links.active {
    max-height: 400px;
    padding: 20px 0;
    box-shadow: var(--shadow-subtle);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links li {
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 0 20px;
    display: block;
  }
  
  .nav-links a:hover {
    color: var(--primary-color) !important;
    background-color: rgba(2, 122, 143, 0.1);
    transform: translateX(5px);
  }
  
  .nav-links a:active {
    transform: translateX(3px) scale(0.98);
  }
  
  /* Override active link styling in mobile menu */
  .nav-links a.active {
    background-color: transparent !important;
    font-weight: 500 !important;
  }
  
  .nav-links a.active::after {
    display: none !important;
  }
  
  /* Hide desktop phone in mobile */
  .nav-phone {
    display: none;
  }
  
  /* Hide mobile phone item for minimalistic design */
  .mobile-phone-item {
    display: none !important;
  }
  }
  
  .mobile-phone-item .phone-link i {
    color: var(--white) !important;
    font-size: 14px;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero Section: Mobile adjustments */
  .hero {
    min-height: 500px;
  }

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

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

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

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Services Section: 1 column on mobile */
  .services {
    padding: 60px 0;
  }

  .services h2 {
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card {
    padding: 30px;
  }

  /* Process Grid: Single column on mobile */
  .process {
    padding: 60px 0;
  }

  .process h2 {
    margin-bottom: 40px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Footer: Stacked on mobile */
  .footer {
    padding: 40px 0 20px;
  }

  /* Footer grid stays 3 columns on tablets */
  
  /* Social icons centering moved to phone breakpoint */

  .footer-column ul li a:hover {
    transform: translateX(0);
  }

  /* RTL hover effect for mobile */
  [dir="rtl"] .footer-column ul li a:hover {
    transform: translateX(-5px);
  }

  /* Social icons centering moved to phone breakpoint only */

  /* RTL social icons handled by main rule */
  
  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }
  
  /* Ensure all grids work properly on mobile */
  .services-grid-three {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .service-card {
    min-height: 280px;
  }
  
  /* Page header adjustments */
  .page-header {
    padding: 30px 0;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  /* Breadcrumb adjustments */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
  }

/* Tablet Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  .services-grid-three {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .service-card {
    min-height: 300px;
  }
}

/* Small Mobile Breakpoint (< 480px) */
@media (max-width: 480px) {

  /* Typography adjustments for small mobile */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  /* Hero Section: Small mobile adjustments */
  .hero {
    min-height: 400px;
  }

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

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

  /* Services Section: Tighter spacing on small mobile */
  .services {
    padding: 40px 0;
  }

  .services h2 {
    margin-bottom: 30px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 25px;
  }

  /* Process Grid: Tighter spacing on small mobile */
  .process {
    padding: 40px 0;
  }

  .process h2 {
    margin-bottom: 30px;
  }

  .process-grid {
    gap: 20px;
  }

  .process-icon {
    font-size: 36px;
  }

  /* Footer: Tighter spacing on small mobile */
  .footer {
    padding: 30px 0 15px;
  }

  .footer-grid {
    gap: 25px;
  }
}

/* Page Header (for About, Services, Contact pages) */
.page-header {
  height: 300px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-header .container {
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: bold;
  color: var(--white);
  margin: 0;
}

.breadcrumb {
  font-size: 14px;
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 20px;
}

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

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* RTL adjustments for page header */
[dir="rtl"] .page-header .container {
  align-items: flex-end;
}

[dir="rtl"] .page-header h1,
[dir="rtl"] .breadcrumb {
  text-align: right;
}

/* Who We Are Section */
.who-we-are {
  background: var(--white);
  padding: var(--section-padding);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-column h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  margin-top: 0;
}

.content-column p {
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
  text-align: justify;
}

.image-column img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: var(--transition-base);
}

.image-column img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Video column styling for about page */
.video-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-column .video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: var(--transition-base);
}

.video-column .video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.video-column .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments for about us image */
@media (max-width: 768px) {
  .image-column img {
    height: 300px;
    margin-bottom: 30px;
  }
  
  .video-column .video-wrapper {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .image-column img {
    height: 250px;
    border-radius: 8px;
  }
  
  .video-column .video-wrapper {
    border-radius: 8px;
  }
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* RTL adjustments for who-we-are */
[dir="rtl"] .content-column {
  text-align: right;
}

/* Our Values Section */
.our-values {
  background: var(--light-bg);
  padding: var(--section-padding);
}

.our-values h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 4px;
  text-align: center;
}

.value-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--white);
}

.value-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.9;
}

/* Responsive: Single column on mobile */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* RTL adjustments for our-values */
[dir="rtl"] .our-values h2 {
  text-align: center;
}

[dir="rtl"] .value-card {
  text-align: center;
}

/* RTL Responsive Adjustments */
@media (max-width: 768px) {
  [dir="rtl"] .nav-links {
    /* Mobile menu works the same in RTL */
    left: 0;
    right: 0;
  }

  [dir="rtl"] .hero-buttons {
    flex-direction: column;
  }

  /* Footer RTL rules handled in main mobile breakpoint */
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: var(--white);
  padding: var(--section-padding);
}

.why-choose-us h2 {
  text-align: center;
  margin-bottom: 50px;
}

.benefits-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 18px;
  color: var(--text-color);
}

.benefits-list .checkmark {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

/* ===================================
   Services Page - Detailed Service Cards
   =================================== */

/* Services Detailed Section */
.services-detailed {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

/* Horizontal Service Cards */
.service-card-horizontal {
  display: flex;
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 40px;
  overflow: hidden;
  transition: var(--transition-base);
}

.service-card-horizontal:last-child {
  margin-bottom: 0;
}

.service-card-horizontal:hover {
  box-shadow: var(--shadow-hover);
}

/* Service Image - 30% width */
.service-card-horizontal .service-image {
  flex: 0 0 30%;
  overflow: hidden;
}

.service-card-horizontal .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-card) 0 0 var(--border-radius-card);
}

/* Service Content - 70% width */
.service-card-horizontal .service-content {
  flex: 1;
  padding: 40px;
}

.service-card-horizontal .service-content h3 {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.service-card-horizontal .service-content p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card-horizontal .service-content ul {
  list-style: none;
  padding: 0;
}

.service-card-horizontal .service-content ul li {
  color: var(--text-color);
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.service-card-horizontal .service-content ul li::before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
  .service-card-horizontal {
    flex-direction: column;
  }

  .service-card-horizontal .service-image {
    flex: 0 0 auto;
    height: 250px;
  }

  .service-card-horizontal .service-image img {
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
  }

  .service-card-horizontal .service-content {
    padding: 30px 20px;
  }
}

/* ===================================
   BRAND CONFIGURATORS SECTION
   =================================== */

.brand-configurators {
  background-color: var(--white);
  padding: var(--section-padding);
}

.brand-configurators h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.brand-configurators p {
  text-align: center;
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-base);
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.brand-card .logo-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-card img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(80%) brightness(0.9);
  transition: var(--transition-base);
  border-radius: 8px;
}

.brand-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

.brand-card span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  margin-top: auto;
  padding-top: 15px;
}

.brand-card:hover span {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive adjustments for brand grid */
@media (max-width: 768px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .brand-card {
    padding: 25px 15px;
    min-height: 170px;
    border-radius: 10px;
  }
  
  .brand-card img {
    width: 90px;
    height: 60px;
  }
  
  .platform-card {
    padding: 25px 15px;
    min-height: 180px;
    border-radius: 10px;
  }
  
  .platform-card img {
    width: 110px;
    height: 70px;
  }
  
  .initiative-logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .brand-card {
    padding: 20px 15px;
    min-height: 160px;
    border-radius: 8px;
  }
  
  .brand-card img {
    width: 80px;
    height: 55px;
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .platform-card {
    padding: 20px 15px;
    min-height: 160px;
    border-radius: 8px;
  }
  
  .platform-card img {
    width: 100px;
    height: 65px;
  }
  
  .initiative-logo {
    width: 80px;
    height: 80px;
  }
}

/* ===================================
   INITIATIVE CARDS SECTION
   =================================== */

.initiative-header {
  background-color: var(--light-bg);
  padding: 60px 0;
  text-align: center;
}

.initiative-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.initiative-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 6px 16px rgba(2, 122, 143, 0.25);
  transition: var(--transition-base);
}

.initiative-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(2, 122, 143, 0.35);
}

.initiative-header h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin: 0;
  max-width: 800px;
}

.initiative-services {
  background-color: var(--white);
  padding: var(--section-padding);
}

.initiative-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.initiative-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius-card);
  padding: 40px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: var(--transition-base);
  min-height: 320px;
  justify-content: space-between;
}

.initiative-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.initiative-card .card-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.initiative-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.initiative-card .initiative-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
  direction: ltr;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 20px;
}

[dir="rtl"] .initiative-card .initiative-subtitle {
  direction: ltr;
}

.initiative-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.initiative-card .btn {
  margin-top: auto;
  align-self: center;
  min-width: 200px;
}

/* Responsive adjustments for initiative cards */
@media (max-width: 768px) {
  .initiative-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .initiative-card {
    padding: 30px;
    min-height: 280px;
  }
  
  .initiative-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .initiative-card {
    padding: 25px;
  }
  
  .initiative-header {
    padding: 40px 0;
  }
}

/* ===================================
   INFO PANELS SECTION
   =================================== */

.info-panels {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.info-panels h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-panel {
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 40px;
  text-align: center;
  transition: var(--transition-base);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.info-panel .panel-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.info-panel h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-panel p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: left;
}

.info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.info-panel ul li {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: left;
  position: relative;
  padding-left: 20px;
}

.info-panel ul li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-panel ul li:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for info panels */
@media (max-width: 992px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
  }
  
  .info-panel {
    padding: 30px;
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }
  
  .info-panel {
    padding: 25px;
  }
}

/* ===================================
   PLATFORM CARDS SECTION
   =================================== */

.platform-links {
  background-color: var(--white);
  padding: var(--section-padding);
}

.platform-links h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 35px 25px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-base);
  min-height: 220px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.platform-card .logo-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.platform-card img {
  width: 140px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(70%) brightness(0.95);
  transition: var(--transition-base);
  border-radius: 6px;
}

.platform-card:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.06);
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  margin-top: auto;
  padding-top: 15px;
}

.platform-card:hover h3 {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive adjustments for platform cards */
@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .platform-card {
    padding: 30px 15px;
    min-height: 180px;
  }
  
  .platform-card img {
    width: 100px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===================================
   PAGE INTRO SECTION
   =================================== */

.page-intro {
  background-color: var(--light-bg);
  padding: 40px 0;
  text-align: center;
}

.page-intro p {
  font-size: 18px;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ===================================
   COMPANY VIDEO SECTION
   =================================== */

.company-video {
  background-color: var(--white);
  padding: var(--section-padding);
  text-align: center;
}

.company-video h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.company-video p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 40px;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-card);
}

/* RTL adjustments for video section */
[dir="rtl"] .company-video h2,
[dir="rtl"] .company-video p {
  text-align: center;
}

/* Car Type Section Styling */
.car-type-section {
  margin-top: 60px;
}

.car-type-section h3 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.car-type-section .info-grid {
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  justify-items: center;
}

.car-type-section .info-panel {
  max-width: 400px;
  width: 100%;
}

.car-type-section .info-panel h4 {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

/* ===================================
   COMPANY OVERVIEW SECTION
   =================================== */

.company-overview {
  background-color: var(--light-bg);
  padding: 60px 0;
  text-align: center;
}

.company-overview h2 {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.company-description {
  font-size: 18px;
  color: var(--text-color);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

/* ===================================
   PROCESS STEPS SECTION
   =================================== */

.process-steps {
  background-color: var(--white);
  padding: var(--section-padding);
}

.process-steps h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.process-card {
  background-color: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.process-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.process-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.process-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.process-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
}

/* ===================================
   WHY CHOOSE ALFA SECTION
   =================================== */

.why-choose-alfa {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.why-choose-alfa h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
}

/* ===================================
   OUR CLIENTS SECTION
   =================================== */

.our-clients {
  background-color: var(--white);
  padding: var(--section-padding);
}

.our-clients h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.client-card {
  background-color: var(--light-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.client-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.client-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.client-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.client-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .process-grid,
  .benefits-grid,
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .company-overview h2 {
    font-size: 28px;
  }
  
  .process-steps h2,
  .why-choose-alfa h2,
  .our-clients h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
}

/* ===================================
   SHIPPING INFO SECTION
   =================================== */

.shipping-info {
  background-color: var(--white);
  padding: var(--section-padding);
}

.shipping-info h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 60px;
}

.shipping-info .info-grid {
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  justify-items: center;
}

.shipping-info .info-panel {
  max-width: 400px;
  width: 100%;
}

/* ===================================
   CTA Band Section
   =================================== */
.cta-band {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.cta-band p {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-white {
  background-color: var(--white);
  color: var(--secondary-color);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-base);
}

.btn-white:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===================================
   Contact Page Styles
   =================================== */

/* Contact Split Section */
.contact-split {
  background-color: var(--white);
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info - Left Column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item h3 {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item p {
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.phone-large {
  font-size: 28px !important;
  font-weight: bold;
  color: var(--primary-color) !important;
}

.info-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

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

/* Contact Form - Right Column */
.contact-form-wrapper {
  background-color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 500;
}

/* Form Input Styling - Requirements 6.1, 6.2, 6.3 */
.contact-form input,
.contact-form select,
.contact-form textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-card);
  background: var(--light-bg);
  background-color: var(--light-bg);
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-color);
  transition: var(--transition-base);
  margin-bottom: 20px;
  outline: none;
}

/* Form Focus States - Requirements 6.4, 6.8 */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 131, 153, 0.1);
}

/* Form Labels - Requirement 6.5 */
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

/* Placeholder Styling - Requirement 6.8 */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

/* Fieldset and Legend for Radio Groups - Accessibility */
.form-group fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-group legend {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 500;
  padding: 0;
}

/* Radio Group - Requirement 6.7 */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-group input[type="radio"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  margin-bottom: 0;
  accent-color: var(--primary-color);
}

.radio-group input[type="radio"]:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* Submit Button - Requirements 6.5, 6.9 */
.btn-full {
  width: 100%;
  padding: 14px 32px;
  font-size: 18px;
  margin-top: 10px;
}

/* Contact form submit button uses Primary Blue */
.contact-form button[type="submit"],
.contact-form .btn-primary {
  width: 100%;
  padding: 14px 32px;
  background: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-color: var(--primary-color);
  border-radius: var(--border-radius-small);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-base);
}

.contact-form button[type="submit"]:hover,
.contact-form .btn-primary:hover {
  background: #026d7f;
  background-color: #026d7f;
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Responsive: Stack vertically on mobile (info first, then form) */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-large {
    font-size: 24px !important;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===================================
   Map Section
   =================================== */

.map-section {
  background-color: var(--light-bg);
  padding: 0;
}

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

.map-container iframe {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ===================================
   Services Page - Detailed Service Cards
   =================================== */

.services-detailed {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.service-card-horizontal {
  display: flex;
  flex-direction: row;
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 40px;
  overflow: hidden;
  transition: var(--transition-base);
}

.service-card-horizontal:hover {
  box-shadow: var(--shadow-hover);
}

.service-image {
  flex: 0 0 30%;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius-card);
}

.service-content {
  flex: 1;
  padding: 40px;
}

.service-content h3 {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-content ul li {
  color: var(--text-color);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.service-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* RTL Support for Service Cards */
[dir="rtl"] .service-card-horizontal {
  flex-direction: row-reverse;
}

[dir="rtl"] .service-content {
  text-align: right;
}

[dir="rtl"] .service-content ul li {
  padding-left: 0;
  padding-right: 25px;
}

[dir="rtl"] .service-content ul li::before {
  left: auto;
  right: 0;
}

/* Responsive: Stack vertically on mobile (image top, content bottom) */
@media (max-width: 768px) {
  .service-card-horizontal {
    flex-direction: column;
  }

  .service-image {
    flex: none;
    width: 100%;
    height: 250px;
  }

  .service-content {
    width: 100%;
    padding: 30px 20px;
  }

  .service-content h3 {
    font-size: 20px;
  }
}

/* ===================================
   CTA Band
   =================================== */

.cta-band {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.cta-band p {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-white {
  background-color: var(--white);
  color: var(--secondary-color);
  border: 2px solid var(--white);
  padding: 12px 30px;
  border-radius: var(--border-radius-small);
}

.btn-white:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===================================
   Page Loading Animation
   =================================== */

/* Page Loader - Full viewport overlay with spinner */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Fade-out transition class */
.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Loader content container */
.loader-content {
  text-align: center;
}

/* Spinner with rotating border animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-bg);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Spinner rotation animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hero content fade-in animation */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Fade-in from bottom animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered button animations */
.hero-buttons .btn:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons .btn:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {

  .page-loader,
  .spinner,
  .hero-content,
  .hero-buttons .btn {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* RTL Support for CTA Band */
[dir="rtl"] .cta-band {
  text-align: center;
}

/* Responsive CTA Band */
@media (max-width: 768px) {
  .cta-band {
    padding: 40px 20px;
  }

  .cta-band h2 {
    font-size: 24px;
  }

  .cta-band p {
    font-size: 16px;
  }
}

/* ===================================
   Contact Page Styles
   =================================== */

/* Contact Split Section */
.contact-split {
  background: var(--white);
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.info-item p {
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
}

.phone-large {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
}

.info-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

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

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--light-bg);
  border: 1px solid #ddd;
  border-radius: var(--border-radius-card);
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--text-color);
  transition: var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 131, 153, 0.1);
}

/* Placeholder text styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  opacity: 1;
}

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

/* Radio Group */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* Submit Button */
.btn-full {
  width: 100%;
}

.contact-form .btn-primary {
  padding: 15px;
  font-size: 18px;
  margin-top: 10px;
}

/* Map Section */
.map-section {
  background: var(--light-bg);
  padding: 0;
}

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

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-large {
    font-size: 24px;
  }

  .radio-group {
    flex-direction: column;
    gap: 15px;
  }
}

/* RTL Support for Contact Page */
[dir="rtl"] .contact-info {
  text-align: right;
}

[dir="rtl"] .info-item h3,
[dir="rtl"] .info-item p {
  text-align: right;
}

[dir="rtl"] .form-group label {
  text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  text-align: right;
}

[dir="rtl"] .radio-group {
  flex-direction: row-reverse;
}

[dir="rtl"] .radio-group label {
  flex-direction: row-reverse;
}

/* ===================================
   Page Loading Animation
   =================================== */

/* Page Loader - Full viewport overlay with spinner */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Fade-out transition class */
.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Loader content container */
.loader-content {
  text-align: center;
}

/* Spinner with rotating border animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-bg);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Spinner rotation animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hero content fade-in animation */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Fade-in from bottom animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered button animations */
.hero-buttons .btn:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons .btn:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {

  .page-loader,
  .spinner,
  .hero-content,
  .hero-buttons .btn {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   Services Page - Icon Styling
   =================================== */

/* Service card header icons */
.service-card-horizontal .service-content h3 i {
  font-size: 28px;
  color: var(--primary-color);
  margin-right: 12px;
  vertical-align: middle;
}

/* RTL Support for service icons */
[dir="rtl"] .service-card-horizontal .service-content h3 i {
  margin-right: 0;
  margin-left: 12px;
}

/* ===================================
   Reduced Motion Support - Class-based
   =================================== */

/* Apply minimal animations when reduce-motion class is present */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Specifically target common animated elements */
.reduce-motion .page-loader,
.reduce-motion .spinner,
.reduce-motion .hero-content,
.reduce-motion .hero-buttons .btn,
.reduce-motion .service-card,
.reduce-motion .process-card,
.reduce-motion .fade-in,
.reduce-motion .slide-in {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Keep essential transitions for usability but make them instant */
.reduce-motion button,
.reduce-motion a,
.reduce-motion input,
.reduce-motion select,
.reduce-motion textarea {
  transition-duration: 0.01ms !important;
}

/* 
===================================
   FAQ Section Styles
   =================================== */

.faq-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  color: var(--text-color);
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: white;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question i {
  font-size: 14px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px 28px 24px 28px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.8;
  color: var(--text-light);
  font-size: 16px;
}

/* RTL Support for FAQ */
[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-question i {
  margin-left: 0;
  margin-right: 16px;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 12px 20px 18px 20px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ===================================
   LOGO LTR ENFORCEMENT
   Force logo to always display LTR regardless of page direction
   Requirements: 2.4
   =================================== */

.nav-brand {
  direction: ltr !important;
  /* Force LTR for logo */
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Override RTL for logo in all contexts */
[dir="rtl"] .nav-brand {
  direction: ltr !important;
  /* Override RTL for logo */
}

/* Hero logo also stays LTR */
.hero-logo {
  direction: ltr !important;
}

[dir="rtl"] .hero-logo {
  direction: ltr !important;
}

/* ===================================
   HOME PAGE - THREE SERVICE CARDS GRID
   Requirements: 4.1, 4.2, 4.3, 4.4
   =================================== */

.services-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
  transition: var(--transition-base);
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 320px;
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 40px;
  text-align: center;
  transition: var(--transition-base);
  justify-content: space-between;
}

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

/* Info panels RTL adjustments */
[dir="rtl"] .info-panel ul,
[dir="rtl"] .info-panel p {
  text-align: right;
}

[dir="rtl"] .info-panel ul li {
  text-align: right;
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .info-panel ul li:before {
  left: auto;
  right: 0;
}

/* ===================================
   RTL (ARABIC) ADJUSTMENTS
   =================================== */

/* RTL adjustments for service cards */
[dir="rtl"] .services-grid-three {
  direction: ltr; /* Keep grid LTR for consistent layout */
}

[dir="rtl"] .service-card-link {
  direction: rtl;
}

/* Ensure all main content sections are centered in RTL */
[dir="rtl"] .services h2,
[dir="rtl"] .services .container {
  text-align: center;
}

/* Hero section RTL adjustments */
[dir="rtl"] .hero-content {
  text-align: center;
  direction: rtl;
}

[dir="rtl"] .hero-content h1,
[dir="rtl"] .hero-content p {
  text-align: center;
}

/* Services section RTL adjustments */
[dir="rtl"] .services {
  direction: rtl;
}

[dir="rtl"] .services h2 {
  text-align: center;
}

/* Service cards RTL adjustments - Force center alignment */
[dir="rtl"] .service-card {
  text-align: center !important;
  direction: rtl;
}

[dir="rtl"] .service-card h3 {
  text-align: center !important;
  justify-content: center !important;
}

[dir="rtl"] .service-card p {
  text-align: center !important;
  justify-content: center !important;
}

[dir="rtl"] .service-card .service-subtitle {
  text-align: center !important;
}

[dir="rtl"] .service-icon {
  text-align: center;
}

/* Removed duplicate conflicting RTL footer rules */

/* Duplicate social icons rule removed */

[dir="rtl"] .service-card {
  text-align: center;
  /* Keep centered in RTL */
}

/* Responsive breakpoints for three-column grid */
@media (max-width: 992px) {
  .services-grid-three {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .services-grid-three {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===================================
   COMPANY VIDEO SECTION
   Requirements: 4.1, 4.2
   =================================== */

.company-video {
  background-color: var(--white);
  padding: var(--section-padding);
  text-align: center;
}

.company-video h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.company-video p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 40px;
}

/* Responsive 16:9 video wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* RTL adjustments for video section */
[dir="rtl"] .company-video {
  text-align: center;
  /* Keep centered */
}

/* Responsive adjustments for video section */
@media (max-width: 768px) {
  .company-video {
    padding: 60px 0;
  }

  .company-video h2 {
    font-size: 28px;
  }

  .company-video p {
    font-size: 16px;
  }

  .video-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .company-video {
    padding: 40px 0;
  }
  
  .company-video h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .company-video p {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .video-wrapper {
    border-radius: 8px;
  }
}

/* ===================================
   BRAND CONFIGURATOR GRID
   Requirements: 4.1, 4.2, 4.3
   =================================== */

.brand-configurators {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.brand-configurators h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.brand-configurators p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.brand-card {
  background: var(--white);
  border-radius: var(--border-radius-card);
  padding: 30px;
  text-align: center;
  transition: var(--transition-base);
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.brand-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  filter: grayscale(100%);
  transition: var(--transition-base);
  margin-bottom: 15px;
}

.brand-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.brand-card span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

/* RTL adjustments for brand grid */
[dir="rtl"] .brand-configurators h2,
[dir="rtl"] .brand-configurators p {
  text-align: center;
}

[dir="rtl"] .brand-card {
  text-align: center;
}

/* Responsive breakpoints for brand grid */
@media (max-width: 992px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 576px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .brand-card {
    padding: 20px;
    min-height: 150px;
  }

  .brand-card img {
    max-width: 80px;
  }
}

/* ===================================
   INFORMATION PANELS
   Requirements: 4.1, 4.2, 16.1, 16.2, 16.3
   =================================== */

.info-panels {
  background-color: var(--white);
  padding: var(--section-padding);
}

.info-panels h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.info-panel {
  background-color: var(--light-bg);
  border-radius: var(--border-radius-card);
  padding: 30px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
}

.info-panel:hover {
  box-shadow: var(--shadow-hover);
}

.panel-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.panel-icon i {
  font-size: 36px;
  color: var(--primary-color);
}

.info-panel h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-panel p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-panel ul li {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.info-panel ul li::before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* RTL adjustments for info panels */
[dir="rtl"] .info-panels h2 {
  text-align: center;
}

[dir="rtl"] .info-panel {
  text-align: right;
}

[dir="rtl"] .info-panel ul li {
  padding-left: 0;
  padding-right: 25px;
}

[dir="rtl"] .info-panel ul li::before {
  left: auto;
  right: 0;
}

/* Responsive breakpoints for info panels */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .info-panel {
    padding: 25px;
  }
}

/* ===================================
   PLATFORM LINKS GRID
   Requirements: 4.1, 4.2, 16.1, 16.2, 16.3
   =================================== */

.platform-links {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.platform-links h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.platform-links p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--white);
  border-radius: var(--border-radius-card);
  padding: 40px;
  text-align: center;
  transition: var(--transition-base);
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.platform-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.platform-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  transition: var(--transition-base);
}

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

/* RTL adjustments for platform grid */
[dir="rtl"] .platform-links h2,
[dir="rtl"] .platform-links p {
  text-align: center;
}

/* Responsive breakpoints for platform grid */
@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .platform-card {
    padding: 30px;
    min-height: 150px;
  }

  .platform-card img {
    max-width: 200px;
  }
}

/* ===================================
   INITIATIVES BROKERAGE COMPONENTS
   Requirements: 4.1, 4.2, 4.3, 4.4, 16.1, 16.2, 16.3
   =================================== */

.initiative-services {
  background-color: var(--white);
  padding: var(--section-padding);
}

.initiative-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
}

.initiative-header img {
  max-width: 300px;
  height: auto;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.initiative-header h1 {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

.initiative-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.initiative-card {
  background: var(--white);
  border-radius: var(--border-radius-card);
  padding: 40px;
  text-align: center;
  transition: var(--transition-base);
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow-subtle);
  border: 2px solid var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.initiative-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.initiative-card .card-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.initiative-card .card-icon i {
  font-size: 48px;
  color: var(--primary-color);
}

.initiative-card h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.initiative-card p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Bilingual subtitle styling */
.initiative-card p:first-of-type {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.initiative-card .btn {
  margin-top: auto;
  width: 100%;
  max-width: 250px;
}

/* Different background tints for sell and buy cards */
.initiative-sell {
  background: linear-gradient(135deg, rgba(2, 122, 143, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.initiative-buy {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

/* RTL adjustments for initiative components */
[dir="rtl"] .initiative-header {
  text-align: center;
}

[dir="rtl"] .initiative-card {
  text-align: center;
}

/* Responsive breakpoints for initiative cards */
@media (max-width: 768px) {
  .initiative-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .initiative-header {
    margin-bottom: 40px;
  }

  .initiative-header h1 {
    font-size: 28px;
  }

  .initiative-header img {
    max-width: 200px;
  }

  .initiative-card {
    padding: 30px;
  }

  .initiative-card h2 {
    font-size: 22px;
  }
}

/* ===================================
   ADDITIONAL RTL COMPATIBILITY
   Ensure all new components work properly in RTL mode
   Requirements: 2.4, 16.4
   =================================== */

/* RTL Hero Section with Logo */
[dir="rtl"] .hero-content {
  text-align: center;
}

/* RTL Service Card Links */
[dir="rtl"] .service-card-link {
  direction: rtl;
}

/* RTL Video Section */
[dir="rtl"] .video-wrapper {
  direction: ltr;
  /* Keep video player LTR */
}

/* RTL Brand Cards */
[dir="rtl"] .brand-card {
  direction: ltr;
  /* Keep brand logos LTR */
}

/* RTL Platform Cards */
[dir="rtl"] .platform-card {
  direction: ltr;
  /* Keep platform logos LTR */
}

/* ===================================
   RESPONSIVE ENHANCEMENTS
   Additional breakpoints for optimal display
   Requirements: 16.1, 16.2, 16.3, 16.4
   =================================== */

/* Desktop Large (> 1200px) - Ensure content doesn't get too wide */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .brand-grid {
    max-width: 1000px;
    margin: 40px auto 0;
  }
  
  .platform-grid {
    max-width: 800px;
  }
  
  .initiative-cards {
    max-width: 1000px;
  }
}

/* Small tablet adjustments (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .services-grid-three {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .initiative-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* Adjust font sizes for tablet */
  .hero-content h1 {
    font-size: 40px;
  }
  
  .company-video h2,
  .brand-configurators h2,
  .info-panels h2,
  .platform-links h2 {
    font-size: 32px;
  }
  
  .initiative-header h1 {
    font-size: 32px;
  }
}

/* Large mobile adjustments (480px - 576px) */
@media (min-width: 480px) and (max-width: 576px) {
  .services-grid-three {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .initiative-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* Adjust padding for large mobile */
  .brand-card,
  .info-panel,
  .platform-card,
  .initiative-card {
    padding: 25px;
  }
  
  /* Ensure text remains readable */
  .hero-content h1 {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 18px;
  }
}

/* Extra small mobile (< 480px) */
@media (max-width: 480px) {
  /* Typography adjustments */
  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 16px;
  }

  .company-video h2 {
    font-size: 24px;
  }

  .brand-configurators h2,
  .info-panels h2,
  .platform-links h2 {
    font-size: 26px;
  }

  .initiative-header h1 {
    font-size: 22px;
  }
  
  /* Reduce padding for very small screens */
  .brand-card,
  .info-panel,
  .platform-card,
  .initiative-card {
    padding: 20px;
  }
  
  /* Ensure navigation is accessible */
  .nav-links li {
    padding: 20px 0;
  }
  
  /* Adjust container padding */
  .container {
    padding: 0 15px;
  }
  
  /* Ensure images don't overflow */
  .brand-card img {
    max-width: 70px;
  }
  
  .platform-card img {
    max-width: 150px;
  }
  
  .initiative-header img {
    max-width: 150px;
  }
}

/* ===================================
   BRAND NEW CARS PAGE - CONFIGURATOR GRID
   Requirements: 6.3, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7
   =================================== */

.brand-configurators {
  background-color: var(--light-bg);
  padding: var(--section-padding);
}

.brand-configurators h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.brand-configurators p {
  text-align: center;
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.brand-card {
  background: var(--white);
  border-radius: var(--border-radius-card);
  padding: 30px;
  text-align: center;
  transition: var(--transition-base);
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: var(--text-color);
}

.brand-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  filter: grayscale(100%);
  transition: var(--transition-base);
  margin-bottom: 15px;
}

.brand-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.brand-card span {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 10px;
}

/* RTL adjustments for brand grid */
[dir="rtl"] .brand-configurators p {
  text-align: center;
}

[dir="rtl"] .brand-card {
  text-align: center;
}

/* Responsive breakpoints for brand grid */
@media (max-width: 992px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 576px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .brand-card {
    padding: 20px;
    min-height: 150px;
  }
  
  .brand-card img {
    max-width: 80px;
  }
}

/* ===================================
   INFORMATION PANELS COMPONENT
   Requirements: 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7
   =================================== */

.info-panels {
  background-color: var(--white);
  padding: var(--section-padding);
}

.info-panels h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 50px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.info-panel {
  background: var(--light-bg);
  border-radius: var(--border-radius-card);
  padding: 40px;
  text-align: left;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
}

.info-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.panel-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.info-panel h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-panel ul li {
  color: var(--text-color);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.info-panel ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.info-panel p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* RTL adjustments for info panels */
[dir="rtl"] .info-panel {
  text-align: right;
}

[dir="rtl"] .info-panel h3 {
  text-align: center;
}

[dir="rtl"] .panel-icon {
  text-align: center;
}

[dir="rtl"] .info-panel ul li {
  padding-left: 0;
  padding-right: 25px;
}

[dir="rtl"] .info-panel ul li::before {
  left: auto;
  right: 0;
}

/* Responsive breakpoints for info panels */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .info-panel {
    padding: 30px 25px;
  }
  
  .info-panels h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}
/* ========
===========================
   USED CARS PAGE STYLES
   =================================== */

/* Platform Links Section */
.platform-links {
  padding: var(--section-padding);
  background-color: var(--white);
}

.platform-links h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 36px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 40px auto 0;
}

.platform-card {
  background: var(--white);
  border-radius: var(--border-radius-card);
  padding: 40px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.platform-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  transition: var(--transition-base);
}

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

.platform-card h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
}

/* Shipping Information Section */
.shipping-info {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.shipping-info h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-size: 36px;
}

/* Car Type Section within Info Panels */
.car-type-section {
  margin-top: 60px;
}

.car-type-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 28px;
}

/* Page Header Styles */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.6);
}

.page-header h1 {
  font-size: 42px;
  margin: 0;
  color: var(--white);
}

/* Page Introduction Section */
.page-intro {
  padding: 60px 0;
  background-color: var(--white);
  text-align: center;
}

.page-intro p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color);
  line-height: 1.7;
}

/* RTL adjustments for platform cards */
[dir="rtl"] .platform-card {
  text-align: center; /* Keep centered for both directions */
}

[dir="rtl"] .breadcrumb {
  direction: ltr; /* Keep breadcrumb LTR for consistency */
}

/* Responsive breakpoints for platform grid */
@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
  }
  
  .platform-card {
    padding: 30px 25px;
  }
  
  .platform-links h2 {
    font-size: 28px;
  }
  
  .page-header h1 {
    font-size: 32px;
  }
  
  .page-intro p {
    font-size: 16px;
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .platform-card {
    padding: 25px 20px;
  }
  
  .platform-card img {
    max-width: 150px;
  }
  
  .page-header {
    padding: 30px 0;
  }
  
  .page-intro {
    padding: 40px 0;
  }
}
/* 
===================================
   FINAL RESPONSIVE IMPROVEMENTS
   Additional responsive enhancements for optimal display
   Requirements: 16.1, 16.2, 16.3, 16.4, 16.5
   =================================== */

/* Ensure no horizontal scrolling on any device */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Additional mobile navigation improvements */
@media (max-width: 576px) {
  /* Ensure mobile menu works properly */
  .nav-links {
    width: 100%;
    left: 0;
    right: 0;
  }
  
  /* Improve touch targets for mobile */
  .nav-links a {
    padding: 20px;
    display: block;
    font-size: 18px;
  }
  
  /* Better mobile hero */
  .hero {
    min-height: 400px;
    padding: 20px 0;
  }
  
  .hero-logo {
    max-width: 150px;
    margin-bottom: 20px;
  }
  
  /* Improve mobile section spacing */
  .services,
  .company-video,
  .brand-configurators,
  .info-panels,
  .platform-links,
  .initiative-services {
    padding: 40px 0;
  }
  
  /* Better mobile typography */
  .page-header h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  
  .breadcrumb {
    font-size: 12px;
  }
}

/* Tablet-specific improvements */
@media (min-width: 576px) and (max-width: 992px) {
  /* Optimize tablet layout */
  .hero {
    min-height: 550px;
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  /* Better tablet grid spacing */
  .services-grid-three,
  .brand-grid,
  .info-grid,
  .platform-grid,
  .initiative-cards {
    gap: 30px;
  }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px; /* Keep content readable on very large screens */
  }
  
  .hero {
    min-height: 700px;
  }
  
  .hero-content h1 {
    font-size: 52px;
  }
}

/* Print styles for better printing */
@media print {
  .navbar,
  .page-loader,
  .footer {
    display: none;
  }
  
  .hero {
    min-height: auto;
    background: none;
  }
  
  .hero-overlay {
    display: none;
  }
  
  .hero-content {
    color: var(--text-color);
  }
  
  .service-card,
  .brand-card,
  .info-panel,
  .platform-card,
  .initiative-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .brand-card,
  .info-panel,
  .platform-card,
  .initiative-card {
    border: 2px solid var(--text-color);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .brand-card:hover,
  .info-panel:hover,
  .platform-card:hover,
  .initiative-card:hover {
    transform: none;
  }
  
  .video-wrapper iframe {
    animation: none;
  }
}

/* Focus improvements for keyboard navigation */
.service-card-link:focus,
.brand-card:focus,
.platform-card:focus,
.initiative-card:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* Ensure images are responsive and don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Better mobile form elements */
@media (max-width: 576px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 300px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .page-header {
    padding: 20px 0;
  }
}

/* ===================================
   IMAGE OPTIMIZATION STYLES
   =================================== */

/* Base image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy loading images - fade in when loaded */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* WebP support detection and fallbacks */
.webp .hero {
  background-image: url('../imgs/hero-luxury-car.webp');
}

.no-webp .hero {
  background-image: url('../imgs/hero-luxury-car.jpg');
}

/* Image error handling - show placeholder on error */
img.error {
  background-color: var(--light-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 14px;
}

/* Brand logos optimization */
.brand-card img {
  width: 100%;
  max-width: 120px;
  height: auto;
  filter: grayscale(100%);
  transition: var(--transition-base);
}

.brand-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Platform logos optimization */
.platform-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  transition: var(--transition-base);
}

.platform-card:hover img {
  transform: scale(1.02);
}

/* Initiative logo optimization */
.initiative-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

/* Responsive image sizes */
@media (max-width: 768px) {
  .brand-card img {
    max-width: 80px;
  }
  
  .platform-card img {
    max-width: 150px;
  }
  
  .initiative-logo {
    max-width: 100px;
  }
}

/* Print styles for images */
@media print {
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
/* =
==================================
   RTL/LTR DIRECTION OVERRIDES
   =================================== */

/* Ensure brand cards and platform cards always maintain LTR layout */
.brand-card,
.platform-card {
  direction: ltr !important;
}

/* Ensure brand card content stays in LTR */
.brand-card .logo-container,
.brand-card span,
.platform-card .logo-container,
.platform-card h3 {
  direction: ltr !important;
  text-align: center !important;
}

/* Override RTL for brand and platform grids */
.brand-grid,
.platform-grid {
  direction: ltr !important;
}

/* Ensure brand and platform card text alignment is always centered */
[dir="rtl"] .brand-card,
[dir="rtl"] .platform-card {
  direction: ltr !important;
  text-align: center !important;
}

[dir="rtl"] .brand-card span,
[dir="rtl"] .platform-card h3 {
  direction: ltr !important;
  text-align: center !important;
}
/* All duplicate RTL footer rules removed */

/* Duplicate rules removed - using the ones in mobile breakpoint section */
/* P
hone Breakpoint (max-width: 576px) - Footer centering only */
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-column {
    text-align: center;
  }

  /* Override: Keep footer centered on phones for Arabic too */
  [dir="rtl"] .footer-column {
    text-align: center !important;
  }
  
  [dir="rtl"] .footer-column p i {
    margin-right: 10px;
    margin-left: 10px;
  }
  
  /* Center social icons on phones for all languages */
  .social-icons {
    justify-content: center;
  }
  
  [dir="rtl"] .social-icons {
    justify-content: center !important;
    direction: ltr !important;
  }
}