/* 
=================================================
Vertex Audit Company - Main Stylesheet
=================================================
Table of Contents:
1. CSS Variables
2. Global Styles
3. Typography
4. Header & Navigation
5. Hero Section
6. Why Choose Us Section
7. About Section
8. Counter Section
9. Services Section
10. Testimonials Section
11. Contact Section
12. Footer
13. Animations
14. Responsive Design
=================================================
*/

/* 1. CSS Variables */
:root {
  --primary-color: #094B82;
  --secondary-color: #99CCFF;
  --text-primary: #555555;
  --text-secondary: #cccccc;
  --bg-white: #ffffff;
  --bg-light-blue: #f5f9ff;
  --font-primary: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  --transition-speed: 0.3s;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 2. Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

/* 4. Header & Navigation */
#main-header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed);
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  max-height: 80px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  color: var(--text-primary);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow);
  border-radius: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color var(--transition-speed);
}

.dropdown-item:hover {
  background-color: var(--bg-light-blue);
  color: var(--primary-color);
}

.language-switcher .btn {
  color: var(--text-primary);
}

.language-switcher .dropdown-menu {
  min-width: 150px;
}

.language-option {
  display: flex;
  align-items: center;
}

/* 5. Hero Section */
.hero-section {
  background: url('../images/hero_section_background.png') no-repeat center center/cover;
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  text-shadow: blue 4px 4px 8px;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  min-height: 2rem;
  color: white;
 text-shadow: red 4px 4px 8px;
}

.typed-text {
  border-right: 2px solid white;
}

.cursor {
  animation: blink 1s infinite;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
  transition: all var(--transition-speed);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
  position: relative;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: white;
}

/* 6. Why Choose Us Section */
#why-choose-us {
  background-color: var(--bg-white);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-speed);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-color);
}

.feature-card:hover .feature-icon i {
  color: white;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-primary);
}


.page-title h1 {
  color: var(--primary-color);
}

/* 7. About Section */
#about {
  background-color: var(--bg-light-blue); 
  padding: 80px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
}

.btn-read-more i {
  margin-left: 0.5rem;
  transition: transform var(--transition-speed);
}

.btn-read-more:hover i {
  transform: translateX(5px);
}

/* 8. Counter Section */
#counter {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* 9. Services Section */
#services {
  padding: 80px 0;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--bg-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
}

.service-card:hover .service-icon i {
  color: white;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.service-link i {
  margin-left: 0.5rem;
  transition: transform var(--transition-speed);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Sidebar Styles */
.sidebar {
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-light-blue);
}

/* Service Categories */
.service-categories {
  margin-bottom: 1.5rem;
}

.category-item {
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.category-button {
  width: 100%;
  background-color: var(--bg-light-blue);
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.category-button:hover {
  background-color: var(--secondary-color);
}

.category-item.active .category-button {
  background-color: var(--primary-color);
  color: white;
}

.category-links {
  display: none;
  padding: 0.5rem 0 0.5rem 1.5rem;
  background-color: rgba(153, 204, 255, 0.1);
}

.category-item.active .category-links {
  display: block;
}

.category-links li {
  margin-bottom: 0.5rem;
}

.category-links a {
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: color var(--transition-speed);
}

.category-links a:hover {
  color: var(--primary-color);
}

/* 10. Testimonials Section */
#testimonials {
  background-color: var(--bg-light-blue);
  padding: 80px 0;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 1rem;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  position: absolute;
  top: -10px;
  left: -10px;
}

.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  position: absolute;
  bottom: -30px;
  right: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.2rem;
}

.author-info .author-position {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

/* 11. Contact Section */
#contact {
  padding: 80px 0;
}

.contact-info {
  background-color: var(--bg-light-blue);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
}

.contact-text h4 {
  margin-bottom: 0.3rem;
}

.contact-text p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.contact-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border: 1px solid var(--text-secondary);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(9, 75, 130, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.btn-submit:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* 12. Footer */
#footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-logo img {
  max-height: 80px;
  margin-bottom: 1rem;
}

.footer-description {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: #ffffff;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: all var(--transition-speed);
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all var(--transition-speed);
}

.social-link2 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-speed);
}



.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.social-link2:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  opacity: 0.8;
}

/* 13. Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 14. Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .about-image::before {
    top: -15px;
    left: -15px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .testimonial-text::before,
  .testimonial-text::after {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  text-align: center;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  z-index: 1000;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Print Styles */
@media print {
  #main-header,
  #footer,
  .hero-buttons,
  #back-to-top,
  .social-links {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  .section-header {
    margin-bottom: 1rem;
  }
}
