/* Global Styles */
:root {
  --primary-color: #0063a9;
  --secondary-color: #ffcc00;
  --accent-color: #e67e22;
  --dark-color: #2c3e50;
  --light-color: #f4f6f7;
  --text-color: #333;
  --white-color: #fff;
  --gray-color: #888;
  --success-color: #27ae60;
  --light-gray: #ecf0f1;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 20%;
}

.section-title p {
  color: var(--gray-color);
  font-size: 1.1rem;
}

section {
  padding: 5rem 0;
}

/* Header Styles */
header {
  background-color: var(--white-color);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  border-bottom: 1px solid var(--light-gray);
}

.logo-container {
  width: 75px;
}

#logo, #footer-logo {
  width: 100%;
  height: auto;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.header-bottom {
  padding: 0.8rem 5%;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 99, 169, 0.1);
  border-radius: 5px;
}

/* Hero Section */
#hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://cdn.pixabay.com/photo/2018/07/22/10/12/painter-3554220_1280.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Services Section */
#services {
  background-color: var(--white-color);
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.category-card {
  background: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  padding: 2rem;
}

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

.category-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.category-icon i {
  font-size: 2.5rem;
  color: var(--white-color);
}

.category-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.category-card p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.category-image {
  border-radius: 8px;
  max-height: 200px;
  margin: 0 auto;
}

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

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
  max-height: 500px;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p, .about-text ul {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about-text ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.about-text ul li::before {
  content: '✓';
  color: var(--success-color);
  position: absolute;
  right: 0;
  top: 0;
}

/* Gallery Section */
#gallery {
  display: none;
}

/* Testimonials Section */
#testimonials {
  background-color: var(--light-color);
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  justify-content: center;
}

.testimonial-card {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 350px;
  transition: var(--transition);
}

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

.testimonial-text {
  position: relative;
  margin-bottom: 1.5rem;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  right: -10px;
}

.testimonial-author {
  text-align: left;
  font-style: italic;
  color: var(--gray-color);
}

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

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-details {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 99, 169, 0.2);
}

.submit-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-button:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.contact-card {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.contact-icon i {
  font-size: 1.8rem;
  color: var(--white-color);
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.map-container h3 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#map {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  right: 0;
}

.footer-section p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  transition: var(--transition);
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact p i {
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.social-icons a i {
  color: var(--white-color);
  font-size: 1.2rem;
}

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

.copyright {
  text-align: center;
  padding: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Accessibility Widget */
.accessibility-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.accessibility-widget i {
  font-size: 1.5rem;
}

.accessibility-menu {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background-color: var(--white-color);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 999;
  min-width: 250px;
  display: none;
}

.accessibility-menu.active {
  display: block;
}

.accessibility-menu h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.accessibility-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition);
}

.accessibility-option:hover {
  background-color: var(--light-gray);
}

/* Chatbot Styles */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.chatbot-button:hover {
  transform: scale(1.05);
}

.chatbot-button i {
  font-size: 1.5rem;
}

.chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-height: 500px;
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
}

.chatbot-container.active {
  display: block;
}

.chatbot-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
}

.chatbot-close {
  cursor: pointer;
  font-size: 1.2rem;
}

.chatbot-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.8rem;
  border-radius: 8px;
}

.bot-message {
  background-color: var(--light-gray);
  align-self: flex-start;
}

.user-message {
  background-color: var(--primary-color);
  color: var(--white-color);
  align-self: flex-end;
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.chatbot-input button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.chatbot-form {
  padding: 1rem;
  display: none;
}

.chatbot-form.active {
  display: block;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-field input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.submit-chat-form {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.submit-chat-form:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

/* For enhanced accessibility */
.high-contrast {
  --primary-color: #000;
  --secondary-color: #fff;
  --text-color: #fff;
  --light-color: #000;
  --white-color: #000;
  --gray-color: #fff;
  --light-gray: #333;
  color: #fff;
  background-color: #000;
}

.larger-text {
  font-size: 120% !important;
}

.larger-text h1 {
  font-size: 4.2rem !important;
}

.larger-text h2 {
  font-size: 2.4rem !important;
}

.larger-text h3 {
  font-size: 1.8rem !important;
}

.larger-text p, .larger-text a, .larger-text li, .larger-text label, .larger-text input, .larger-text button {
  font-size: 1.2rem !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-info {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-container {
    flex-direction: column-reverse;
  }
  
  .testimonial-card {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .header-top {
    padding: 1rem 2%;
  }
  
  .header-bottom {
    padding: 0.8rem 2%;
  }
  
  .logo-container {
    width: 120px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
  }
}