/* CRITICAL FIXES FOR LAMBDA TECH WEBSITE */

/* Fix 1: Ensure hero gradient shows properly */
.hero-section {
  background: linear-gradient(135deg, #DC3545 0%, #FB7D13 100%) !important;
}

.hero-section.gradient-bg-animated {
  background: linear-gradient(-45deg, #DC3545, #FB7D13, #DC3545, #FB7D13) !important;
  background-size: 400% 400% !important;
  animation: gradientShift 15s ease infinite !important;
}

/* Fix 2: Navigation dropdowns - hide English text in Arabic mode */
body.rtl .menu-links a {
  direction: rtl;
  text-align: right;
}

body.ltr .menu-links a {
  direction: ltr;
  text-align: left;
}

/* Fix 3: Language switcher improved visibility */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
}

.lang-btn {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  min-width: 50px;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.lang-btn.active {
  background: #FB7D13 !important;
  border-color: #FB7D13 !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(251, 125, 19, 0.4);
}

/* Fix 4: Service cards proper spacing - NO OVERLAP */
.feat {
  background: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.main-desc {
  border-bottom: 1px solid #fb7d13 !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding-bottom: 20px !important;
  margin-bottom: 20px !important;
}

body.rtl .main-desc {
  flex-direction: row !important;
}

.services-desc {
  font-size: 16px !important;
  color: #dc3545 !important;
  flex: 1 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: none !important;
}

.services-icon {
  color: #a0a0a0 !important;
  border: 2px solid #fb7d13 !important;
  display: flex !important;
  min-width: 70px !important;
  min-height: 70px !important;
  width: 70px !important;
  height: 70px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: white !important;
  box-shadow: 0 2px 10px rgba(251, 125, 19, 0.2) !important;
  margin: 0 !important;
}

.services-desc-p {
  font-size: 14px !important;
  color: #555 !important;
  line-height: 1.6 !important;
  margin-top: 15px !important;
}

/* Fix 5: Footer improvements */
#section-7 {
  background-color: #161616 !important;
  padding-top: 50px !important;
}

#section-7 .footer_logo img {
  max-width: 150px;
  height: auto;
}

#section-7 p {
  color: #999 !important;
  line-height: 1.8;
}

#section-7 a {
  color: #bbb !important;
  transition: color 0.3s ease;
}

#section-7 a:hover {
  color: #FB7D13 !important;
}

#section-7 h4,
#section-7 h6 {
  color: white !important;
  font-weight: 700 !important;
}

#section-7 .footer-link {
  color: #bbb !important;
  border-bottom: 1px solid transparent;
  padding-bottom: 5px;
}

#section-7 .footer-link:hover {
  color: #FB7D13 !important;
  border-bottom-color: #FB7D13;
}

/* Social icons in footer */
#section-7 .social_icons li {
  margin: 0 5px;
}

#section-7 .social_icons li a {
  width: 45px !important;
  height: 45px !important;
  background-color: #2a2a2a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: white !important;
  font-size: 18px !important;
  transition: all 0.3s ease !important;
}

#section-7 .social_icons li a:hover {
  background-color: #FB7D13 !important;
  transform: scale(1.1);
}

/* Copyrights section */
.copyrights {
  background-color: #0a0a0a !important;
  padding: 20px 0 !important;
  border-top: 1px solid #2a2a2a;
}

.copyrights span,
.copyrights a {
  color: #999 !important;
  font-size: 14px;
}

/* Fix 6: Statistics section proper contrast */
.statistics {
  background-image: url("https://www.thetambellinigroup.com/wp-content/uploads/2019/08/top-of-mind-cybersecurity-tools-post.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  padding: 60px 0;
}

.statistics .overlay {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

.statistics .count-number {
  color: white !important;
  font-size: 45px !important;
  font-weight: 800 !important;
}

.statistics .count-desc {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 18px !important;
}

.statistics i {
  color: #FB7D13 !important;
}

/* Fix 7: Testimonials proper spacing */
.swiper-pagination {
  bottom: 15px !important;
  position: absolute;
  z-index: 10;
}

.swiper-pagination-bullet {
  background: #FF8C42 !important;
  opacity: 0.4;
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #FF8C42 !important;
  transform: scale(1.4);
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

/* Fix 8: Responsive improvements */
@media (max-width: 768px) {
  .main-desc {
    flex-direction: column !important;
    text-align: center;
  }

  .services-icon {
    margin: 0 auto 15px auto !important;
  }

  .services-desc {
    text-align: center;
  }

  .services-desc-p {
    text-align: center;
  }

  body.rtl .main-desc {
    flex-direction: column !important;
  }

  .hero-section {
    min-height: 500px;
  }

  .language-switcher {
    margin-top: 15px;
  }
}

/* Fix 9: Ensure proper RTL/LTR text direction */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

/* Fix 10: Navigation menu links should use translations properly */
.nav-link[data-i18n] {
  white-space: nowrap;
}

/* WhatsApp floating button improvements */
.whatsapp-float {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  background: #25D366 !important;
  color: white !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5) !important;
  z-index: 9999 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

body.rtl .whatsapp-float {
  right: auto !important;
  left: 30px !important;
}

.whatsapp-float:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7) !important;
}

/* Ensure text colors are good everywhere */
h1, h2, h3, h4, h5, h6 {
  color: #2a2a2a;
}

.text-white,
.text-white * {
  color: white !important;
}

/* Fix breadcrumb RTL */
body.rtl .bread .d-flex {
  flex-direction: row-reverse;
}

body.rtl .f-12 {
  margin: 0 5px;
}

/* CRITICAL FIX: HAMBURGER ICON VISIBILITY ON ALL PAGES */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  padding: 8px 12px !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(251, 125, 19, 0.25) !important;
}

.navbar-toggler .fa-bars,
.navbar-toggler i {
  color: white !important;
  font-size: 24px !important;
}

/* CRITICAL FIX: LOGO VISIBILITY - Ensure proper display */
.navbar-brand {
  padding: 5px 0;
}

.navbar-brand .logo,
.footer_logo img,
.logo {
  filter: brightness(1.2) !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
}

/* About Page Specific Fixes */
.img-top {
  background-image: url("../imgs/work.png");
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.we-img {
  max-height: 350px !important;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-p {
  color: #434343;
  font-size: 17px;
  line-height: 1.8;
}

.vision {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #DC3545 !important;
  text-transform: uppercase;
}

.services-desc-p-about {
  color: #666 !important;
  text-align: center;
  font-size: 16px !important;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

/* Contact Page Fixes */
.send-msg {
  font-weight: 600 !important;
  font-size: 32px !important;
  color: #DC3545 !important;
  margin-bottom: 30px;
}

.sky-form .input input,
.sky-form .select select,
.sky-form .textarea textarea {
  border-color: #e5e5e5 !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  font-size: 15px;
  transition: all 0.3s ease;
}

.sky-form .input input:focus,
.sky-form .textarea textarea:focus {
  border-color: #FB7D13 !important;
  box-shadow: 0 0 0 3px rgba(251, 125, 19, 0.1) !important;
  outline: none;
}

.sky-form .button {
  background: linear-gradient(135deg, #DC3545, #FB7D13) !important;
  border: none !important;
  padding: 15px 40px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 30px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.sky-form .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3) !important;
}

/* Breadcrumb improvements */
.bread {
  background-color: #f8f8f8;
  padding: 15px 0;
  border-bottom: 2px solid #e9e9e9;
}

.page-name {
  color: #DC3545 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 0;
}

.color-c {
  font-size: 14px;
  color: #161616 !important;
  font-weight: 600;
}

.color-c:hover {
  color: #FB7D13 !important;
}

.color-g {
  font-size: 14px;
  color: #999;
}

/* Modern button styles */
.btn-primary-custom {
  background: linear-gradient(135deg, #DC3545, #FB7D13) !important;
  color: white !important;
  padding: 15px 40px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s ease !important;
  border: none !important;
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5) !important;
  color: white !important;
}

.btn-secondary-custom {
  background: white !important;
  color: #DC3545 !important;
  padding: 15px 40px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s ease !important;
  border: 2px solid white !important;
}

.btn-secondary-custom:hover {
  background: transparent !important;
  color: white !important;
  transform: translateY(-3px);
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(220, 53, 69, 0.2);
}

/* Section title styling */
.section-title {
  color: #2a2a2a;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, #DC3545, #FB7D13);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Course cards improvements for AI/Cybersecurity pages */
.course-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.2);
}

.course-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-card-img img {
  transform: scale(1.15);
}

.course-card-content {
  padding: 20px;
}

.course-card-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.4;
  margin: 0;
}

/* Testimonial card styling */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 140, 66, 0.25);
  border-color: #FF8C42;
}

/* Testimonial swiper slides equal height */
.testimonialsSwiper .swiper-slide {
  height: auto;
  display: flex;
}

.testimonialsSwiper .swiper-wrapper {
  align-items: stretch;
}

.testimonial-stars {
  color: #FFD700;
  font-size: 18px;
  display: flex;
  gap: 5px;
}

.testimonial-text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 20px 0;
  font-style: italic;
}

.testimonial-author {
  font-size: 18px;
  font-weight: 700;
  color: #DC3545;
  margin: 10px 0 5px 0;
}

.testimonial-university {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* Sticky navbar */
.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #161616 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* HOMEPAGE RTL/LTR FIXES */

/* Fix testimonial avatar margins for RTL */
body.rtl .testimonial-avatar {
  margin-left: 0 !important;
  margin-right: 15px !important;
}

body.ltr .testimonial-avatar {
  margin-left: 0 !important;
  margin-right: 15px !important;
}

/* Additional testimonial fixes for proper alignment */
.testimonials-wrapper {
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Ensure testimonials don't shift left */
.testimonials-track {
  margin: 0 !important;
  padding: 0 15px !important;
}

/* Fix testimonial bubble internal alignment */
body.rtl .testimonial-bubble > div:first-child {
  flex-direction: row !important;
}

body.ltr .testimonial-bubble > div:first-child {
  flex-direction: row-reverse !important;
}

/* Fix rating stars spacing */
.testimonial-bubble h5 {
  margin-bottom: 2px !important;
}

.testimonial-bubble small {
  display: block;
  margin-bottom: 5px;
}

/* Fix footer section heading underlines for RTL/LTR */
body.rtl footer h5 div {
  right: 0 !important;
  left: auto !important;
}

body.ltr footer h5 div {
  left: 0 !important;
  right: auto !important;
}

/* Fix arrow icons direction */
body.rtl .arrow-icon-left:before {
  content: "\f061"; /* arrow-right */
}

body.ltr .arrow-icon-right:before {
  content: "\f060"; /* arrow-left */
}

/* Gradient animation for CTA section */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Ensure gradient animation works */
.gradient-bg-animated {
  background: linear-gradient(-45deg, #E74C3C, #FF8C42, #DC3545, #FB7D13) !important;
  background-size: 400% 400% !important;
  animation: gradientShift 15s ease infinite !important;
}
