/* Base styles */
:root {
  --primary-color: #2c4d9e;
  --secondary-color: #29b6f6;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #666;
  --accent-color: #ff9800;
}

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

html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

body {
  font-family: 'Heebo', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: white;
  text-align: right;
  width: 100%;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header styles */
header {
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.logo-container {
  text-align: center;
}

.logo {
  max-width: 350px;
  height: auto;
  max-height: 130px;
  width: auto;
  object-fit: contain;
}

/* Hero section with background image */
.hero {
  background: linear-gradient(rgba(44, 77, 158, 0.85), rgba(41, 182, 246, 0.85)), url('../mahle.jpeg');
  background-size: cover;
  background-position: center;
  padding: 100px 0; /* Increased padding from 60px to 100px */
  min-height: 400px; /* Added minimum height */
  color: white;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Content section */
.content-section {
  padding: 40px 0;
  background-color: white;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.content-paragraphs {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.content-paragraphs p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  word-wrap: break-word;
}

/* Contact section */
.contact-section {
  padding: 40px 0;
  background-color: var(--light-gray);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: clamp(1.5rem, 5vw, 2rem);
}

contact-section p {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-gray);
  padding: 0 15px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 25px 15px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  width: 95%;
}

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: 'Heebo', 'Roboto', sans-serif;
  -webkit-appearance: none; /* Fix for iOS input styling */
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

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

.submit-btn {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  width: 100%;
  font-family: 'Heebo', 'Roboto', sans-serif;
  -webkit-appearance: none; /* Fix for iOS button styling */
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-status {
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  word-wrap: break-word;
}

.form-status.success {
  color: #4caf50;
}

.form-status.error {
  color: #f44336;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: right;
}

.close {
  color: #aaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Footer */
footer {
  padding: 20px 0;
  text-align: center;
  background-color: #333;
  color: white;
  width: 100%;
}

/* RTL specific styles */
html[dir="rtl"] {
  text-align: right;
}

/* New Call to Action Section */
.cta-section {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  padding: 60px 0;
  color: white;
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-box p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* New Client Hook Section */
.client-hook-section {
  padding: 50px 0;
  background-color: white;
  text-align: center;
}

.client-hook-section h2 {
  color: var(--primary-color);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 30px;
}

.quick-contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Heebo', 'Roboto', sans-serif;
  font-size: 16px;
}

.form-row button {
  padding: 15px 30px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Heebo', 'Roboto', sans-serif;
}

.form-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-form-status {
  margin-top: 15px;
  font-weight: 500;
}

.quick-form-status.success {
  color: #4caf50;
}

.quick-form-status.error {
  color: #f44336;
}

/* reCAPTCHA Container */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  width: 100%;
}

.recaptcha-container iframe {
  max-width: 100%;
}

/* Quick Contact Form reCAPTCHA adjustment */
.quick-contact-form .recaptcha-container {
  margin-top: 15px;
}

/* Social Networks Section */
.social-section {
  margin-bottom: 20px;
  text-align: center;
}

.social-section h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transition: transform 0.3s, background-color 0.3s;
}

.social-icon:hover {
  transform: translateY(-5px);
  background-color: var(--secondary-color);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Services List Styles */
.services-list {
    margin: 2rem auto;
    background-color: rgba(44, 77, 158, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 650px;
    width: 90%; /* Changed from 100% to 90% for better margins */
    box-sizing: border-box; /* Ensure padding is included in width */
    display: block; /* Force display property */
    visibility: visible; /* Ensure visibility */
}

.services-list h3 {
    color: #2c4d9e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center; /* Center the heading */
}

.services-list ul {
    margin: 0;
    padding: 0 1.5rem;
    list-style-type: none;
}

.services-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.4; /* Improved line height */
}

.services-list li:before {
    content: "✓";
    color: #2c4d9e;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* CTA Button Styles Update */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #2c4d9e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1a3a7f;
}

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

.whatsapp-button:hover {
    background-color: #1da851;
}

.whatsapp-button svg {
    margin-inline-end: 0.5rem;
}

.waze-button {
  background-color: #33ccff;
}

.waze-button:hover {
  background-color: #25a3cc;
}

.waze-button svg {
  margin-inline-end: 0.5rem;
}

/* Video Section */
.video-section {
  padding: 50px 0;
  background-color: var(--light-gray);
}

.video-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  position: relative;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-25px) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.partner-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.5));
  border-radius: 10px;
  z-index: -1;
}

.partner-logo p {
  margin-top: 15px;
  color: var(--dark-gray);
  font-style: italic;
  font-weight: 500;
  text-align: center;
}

.mahle-logo {
  max-width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.partner-logo:hover .mahle-logo {
  transform: scale(1.05);
}

/* Enhanced Responsive design */
@media (max-width: 768px) {
  .logo {
    max-width: 280px;
    /* max-height: 80px; */
  }
  
  .hero {
    padding: 30px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .content-paragraphs p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .contact-form {
    padding: 20px 15px;
  }
  
  .cta-box {
    padding: 15px;
  }
  
  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row input,
  .form-row button {
    width: 100%;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }

  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .services-list {
    width: 95%;
    padding: 1.2rem;
    margin: 1.5rem auto;
  }
  
  .services-list h3 {
    font-size: 1.3rem;
  }
  
  .services-list li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .video-container {
    padding-bottom: 75%; /* Adjust for mobile */
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  .logo {
    max-width: 220px;
    /* max-height: 70px; */
  }
  
  .hero {
    padding: 10px 0;
    min-height: 200px;;
  }
  
  .hero h1 {
    /* font-size: 1.5rem; */
    padding: 0 10px;
  }
  
  .hero .subtitle {
    font-size: 0.9rem;
    padding: 0 20px;
    text-align: center;
  }
  
  .content-section,
  .contact-section {
    padding: 30px 0;
  }
  
  .content-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .contact-form {
    padding: 15px 10px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  input,
  textarea,
  .submit-btn {
    font-size: 14px;
    padding: 10px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .cta-section {
    padding: 40px 0;
  }
  
  .client-hook-section {
    padding: 30px 0;
  }
  
  .cta-box {
    padding: 10px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .social-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* For very small screens */
@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .content-section h2,
  .contact-section h2 {
    font-size: 1.3rem;
  }
  
  .content-paragraphs p {
    font-size: 0.9rem;
  }
}