/* Base Styles */
:root {
  --primary: #aecc48;
  --primary-hover: #9dbb3a;
  --secondary: #1f7aa7;
  --secondary-hover: #186a93;
  --text-dark: #333;
  --text-light: #666;
  --text-lighter: #888;
  --white: #fff;
  --light-bg: #f8f9fa;
  --border-color: #e1e4e8;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.app-container {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  font-family: inherit;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--light-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background-color: var(--white);
  color: var(--secondary);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  top: 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--primary);
  background-color: rgba(174, 204, 72, 0.1);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:first-child {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span:last-child {
  bottom: 0;
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-container {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 500px;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Features Section */
.features {
  background-color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-hover);
  border-color: var(--primary);
}

.feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.feature-icon .icon {
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* Pricing Section */
.pricing {
  background-color: var(--light-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  position: relative;
  box-shadow: 0 4px 6px var(--shadow);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-hover);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 15px 30px var(--shadow-hover);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-hover);
}

.quote-icon {
  margin-bottom: 1rem;
}

.quote-icon .icon {
  font-size: 2rem;
  color: var(--text-lighter);
}

.quote {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-style: italic;
}

.author .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.author .role {
  color: var(--text-lighter);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Trust Badges */
.trust-badges {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.trust-badges h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.badges-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.badge {
  height: 4rem;
  width: 8rem;
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Compliance Badge */
.compliance-badge {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(174, 204, 72, 0.05), rgba(174, 204, 72, 0.1));
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(174, 204, 72, 0.2);
}

.check-icon .icon {
  color: var(--primary);
  font-size: 3rem;
  font-weight: bold;
}

.badge-text .title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.badge-text .subtitle {
  color: var(--text-light);
  font-size: 1rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--secondary), #1a6990);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer p, .footer li {
  color: #bdc3c7;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a:hover {
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
}

.newsletter-form .btn {
  border-radius: 0;
  padding: 0.75rem 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
}

.footer-bottom p {
  color: #95a5a6;
  font-size: 0.9rem;
}

/* About Page Styles */
.about-hero, .contact-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
  text-align: center;
}

.about-hero-content h1, .contact-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-intro, .contact-intro {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.company-overview {
  padding: 5rem 0;
  background-color: var(--white);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.overview-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.overview-image {
  display: flex;
  justify-content: center;
}

.mvv-section, .expertise-section, .team-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.mvv-grid, .expertise-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mvv-card, .expertise-card, .team-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.3s ease;
}

.mvv-card:hover, .expertise-card:hover, .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-hover);
}

.mvv-icon, .expertise-icon, .team-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.mvv-card h3, .expertise-card h3, .team-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.mvv-card p, .expertise-card p, .team-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.commitment-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.commitment-content h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.commitment-item {
  text-align: center;
  padding: 2rem;
}

.commitment-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.commitment-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.commitment-item p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Page Styles */
.contact-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.contact-form-container h2, .contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(174, 204, 72, 0.1);
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.contact-info {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 1rem;
  height: fit-content;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-details h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-details p {
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.social-media {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.social-media h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.map-section {
  padding: 3rem 0;
  background-color: var(--light-bg);
}

.map-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

.map-placeholder {
  height: 300px;
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* FAQ Styles */
.faq-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--white);
  border: none;
  text-align: right;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: var(--light-bg);
}

.faq-question.active {
  background-color: var(--primary);
  color: var(--white);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  background-color: var(--light-bg);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
  padding: 1.5rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Mobile Menu */
.mobile-menu-active {
  display: block !important;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 5px 20px var(--shadow);
  z-index: 999;
  border-top: 1px solid var(--border-color);
}

.mobile-menu-active ul {
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  gap: 0.5rem;
}

.mobile-menu-active li {
  text-align: center;
}

.mobile-menu-active a {
  display: block;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content,
  .overview-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-text h1,
  .about-hero-content h1,
  .contact-hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding-top: 8rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .badges-grid {
    gap: 1rem;
  }
  
  .compliance-badge {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
  }
  
  .newsletter-form .btn {
    border-radius: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .feature-card,
  .pricing-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animation and Transition Enhancements */
.feature-card,
.pricing-card,
.testimonial-card,
.mvv-card,
.expertise-card,
.team-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-container {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.btn:focus,
.faq-question:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu-btn,
  .cta,
  .footer {
    display: none !important;
  }
  
  .hero {
    padding-top: 2rem;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}
