/* CSS for Home Page */

/* Modern Image-Focused Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
  }
  
  .hero-slider .carousel-item {
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    position: relative;
    background: var(--primary-blue);
  }
  
  .hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7) contrast(1.05);
  }
  
  /* Subtle gradient overlay for text readability */
  .hero-slider .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to right,
      rgba(25, 47, 101, 0.8) 0%,
      rgba(25, 47, 101, 0.4) 50%,
      transparent 100%
    );
    z-index: 1;
  }
  
  /* Content positioning - left side focus */
  .hero-slider .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0;
    text-align: left;
  }
  
  .hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    min-height: 100%;
  }
  
  .hero-text-box {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
  }
  
  .hero-description {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .btn-hero {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    text-align: center;
  }
  
  .btn-hero.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }
  
  .btn-hero.btn-primary:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  }
  
  .btn-hero.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
  
  .btn-hero.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  }
  
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
  }
  
  /* Services Section */
  .services-section {
    background-color: var(--white);
  }
  
  .section-title h2 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .section-title p {
    color: var(--dark-gray);
    font-size: 1.1rem;
  }
  
  .service-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .service-icon {
    background-color: var(--pale-blue);
    color: var(--primary-blue);
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
  }
  
  .service-card:hover .service-icon {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: scale(1.1);
  }
  
  .service-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 50px;
  }
  
  /* Testimonials Section */
  .testimonials-section {
    background-color: var(--light-gray);
    position: relative;
    padding: 4rem 0;
  }
  
  .testimonials-section .carousel-item {
    background-color: transparent;
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 2rem 0;
  }
  
  .testimonials-section .carousel-inner {
    display: flex;
    align-items: center;
  }
  
  .testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 800px;
  }
  
  .testimonial-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .testimonial-author h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .testimonial-author p {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* Carousel Controls */
  .testimonials-section .carousel-control-prev,
  .testimonials-section .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
  }
  
  .testimonials-section .carousel-control-prev {
    left: -20px;
  }
  
  .testimonials-section .carousel-control-next {
    right: -20px;
  }
  
  .testimonials-section .carousel-control-prev:hover,
  .testimonials-section .carousel-control-next:hover {
    opacity: 1;
  }
  
  /* Call to Action Section */
  .cta-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
    position: relative;
    overflow: hidden;
  }
  
  .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
  }
  
  .cta-card {
    background: transparent;
    color: var(--white);
    border-radius: 10px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
  }
  
  .cta-card h2 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .cta-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .cta-card .btn-primary {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
  }
  
  .cta-card .btn-primary:hover {
    background-color: var(--pale-blue);
    border-color: var(--pale-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Partners Section */
  .partners-section {
    background-color: var(--light-gray);
  }
  
  .partner-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    text-align: center;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .partner-card img {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
  }
  
  .partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
  
  /* Modern Carousel Controls */
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
  }
  
  .hero-slider .carousel-control-prev {
    left: 1.5rem;
  }
  
  .hero-slider .carousel-control-next {
    right: 1.5rem;
  }
  
  .hero-slider .carousel-control-prev:hover,
  .hero-slider .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
  
  .hero-slider .carousel-control-prev-icon,
  .hero-slider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
  }
  
  /* Modern Carousel Indicators */
  .hero-slider .carousel-indicators {
    bottom: 1.5rem;
    margin: 0;
  }
  
  .hero-slider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
  }
  
  .hero-slider .carousel-indicators button.active {
    background: var(--white);
    border-color: var(--white);
    width: 12px;
    height: 12px;
  }
  
  /* Animation effects */
  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .carousel-item.active .hero-text {
    animation: slideInFromLeft 0.8s ease-out;
  }
  
  .carousel-item.active .hero-visual {
    animation: slideInFromRight 0.8s ease-out;
  }
  
  .carousel-item.active .hero-badge {
    animation: fadeInUp 0.6s ease-out 0.2s both;
  }
  
  .carousel-item.active .hero-title {
    animation: fadeInUp 0.6s ease-out 0.4s both;
  }
  
  .carousel-item.active .hero-description {
    animation: fadeInUp 0.6s ease-out 0.6s both;
  }
  
  .carousel-item.active .hero-cta {
    animation: fadeInUp 0.6s ease-out 0.8s both;
  }

  /* Responsive Adjustments */
  @media (max-width: 991.98px) {
    .hero-slider {
      height: 80vh;
      min-height: 600px;
    }
    
    .hero-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
    
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-description {
      font-size: 1.1rem;
    }
    
    .hero-stats {
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
      width: 50px;
      height: 50px;
    }
    
    .carousel-control-prev {
      left: 1rem;
    }
    
    .carousel-control-next {
      right: 1rem;
    }
    
    .service-card {
      margin-bottom: 2rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .hero-slider {
      height: 70vh;
      min-height: 500px;
    }
    
    .hero-title {
      font-size: 2rem;
    }
    
    .hero-description {
      font-size: 1rem;
    }
    
    .hero-btn {
      padding: 0.8rem 2rem;
      font-size: 1rem;
      min-width: 160px;
    }
    
    .hero-stats {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
      font-size: 1.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
      width: 40px;
      height: 40px;
    }
    
    .cta-card {
      padding: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonials-section {
        padding: 2rem 0;
    }
    
    .testimonials-section .carousel-item {
        padding: 1rem 0;
    }
    
    .testimonials-section .carousel-control-prev,
    .testimonials-section .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    
    .testimonials-section .carousel-control-prev {
        left: -15px;
    }
    
    .testimonials-section .carousel-control-next {
        right: -15px;
    }
  }
  
  @media (max-width: 575.98px) {
    .hero-slider {
      height: 60vh;
      min-height: 450px;
    }
    
    .hero-title {
      font-size: 1.8rem;
    }
    
    .hero-description {
      font-size: 0.95rem;
    }
    
    .hero-cta {
      flex-direction: column;
      align-items: center;
    }
    
    .hero-btn {
      width: 100%;
      max-width: 280px;
    }
    
    .section-title h2 {
      font-size: 1.75rem;
    }
    
    .service-icon {
      width: 60px;
      height: 60px;
      line-height: 60px;
      font-size: 1.5rem;
    }
    
    .partner-card {
      height: 100px;
    }
    
    .partner-card img {
      max-height: 60px;
    }
  }
  
  /* RTL Support for Arabic Layout */
  html[lang="ar"] .hero-slider .carousel-caption {
    direction: rtl;
    text-align: right;
  }
  
  html[lang="ar"] .hero-content {
    direction: rtl;
    padding: 0 2rem;
  }
  
  html[lang="ar"] .hero-text-box {
    margin-left: auto;
    margin-right: 0;
  }
  
  html[lang="ar"] .hero-slider .carousel-item::after {
    background: linear-gradient(
      to left,
      rgba(25, 47, 101, 0.8) 0%,
      rgba(25, 47, 101, 0.4) 50%,
      transparent 100%
    );
  }
  
  html[lang="ar"] .hero-actions {
    justify-content: flex-start;
  }
  
  html[lang="ar"] .hero-slider .carousel-control-prev {
    left: auto;
    right: 1.5rem;
  }
  
  html[lang="ar"] .hero-slider .carousel-control-next {
    right: auto;
    left: 1.5rem;
  }
  
  /* Responsive Design */
  @media (max-width: 991.98px) {
    .hero-slider .carousel-item {
      height: 70vh;
      min-height: 450px;
    }
    
    .hero-text-box {
      max-width: 500px;
      padding: 2rem;
    }
    
    .hero-title {
      font-size: 2.6rem;
      font-weight: 800;
    }
    
    .hero-description {
      font-size: 1.2rem;
      font-weight: 500;
    }
    
    html[lang="ar"] .hero-slider .carousel-control-prev {
      right: 1rem;
    }
    
    html[lang="ar"] .hero-slider .carousel-control-next {
      left: 1rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .hero-slider .carousel-item {
      height: 60vh;
      min-height: 400px;
    }
    
    .hero-content {
      padding: 0 1rem;
    }
    
    .hero-text-box {
      max-width: 100%;
      padding: 1.5rem;
    }
    
    .hero-title {
      font-size: 2.1rem;
      font-weight: 800;
    }
    
    .hero-description {
      font-size: 1.1rem;
      font-weight: 500;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
      width: 40px;
      height: 40px;
    }
    
    .hero-slider .carousel-control-prev {
      left: 1rem;
    }
    
    .hero-slider .carousel-control-next {
      right: 1rem;
    }
    
    html[lang="ar"] .hero-slider .carousel-control-prev {
      right: 1rem;
      left: auto;
    }
    
    html[lang="ar"] .hero-slider .carousel-control-next {
      left: 1rem;
      right: auto;
    }
  }
  
  html[lang="ar"] .service-card,
  html[lang="ar"] .testimonial-card,
  html[lang="ar"] .cta-card {
    direction: rtl;
  }