/* EGYPEN Website Styles */
:root {
  --primary-color: #2f2f2f;
  --secondary-color: #e61820;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #1a1a1a;
}

/* Override any conflicting styles */
* {
  box-sizing: border-box;
}

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

body {
  font-family: "Tajawal", "Arial", sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--primary-color);
  background-color: var(--white);
  line-height: 1.6;
  position: relative;
  overflow-y: scroll;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2f2f2f;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #2f2f2f #f1f1f1;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo img {
  max-height: 80px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
  padding: 5px 10px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-color);
}

/* Dropdown Menu Styles */
.main-nav .dropdown {
  position: relative;
}

.dropdown-show-all {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  padding-top: 5px;
}

.dropdown-show-all .show-all-products {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
}

.dropdown-show-all .show-all-products:hover {
  background-color: rgba(230, 24, 32, 0.1);
  color: var(--secondary-color) !important;
  transform: translateX(-3px);
}

.dropdown-show-all .show-all-products i {
  font-size: 12px;
}

/* Create an invisible bridge area to eliminate gap between dropdown link and menu */
.main-nav .dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 10px;
  background: transparent;
  z-index: 1001;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 280px;
  max-height: calc(
    8 * 48px + 20px
  ); /* Fixed height for 8 items (48px each + padding) */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 5px 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 0;
  z-index: 1000;
  border-top: 3px solid var(--secondary-color);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Show dropdown on hover of parent li or bridge */
.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:hover::before {
  display: block;
}

/* Keep dropdown visible when hovering over menu */
.main-nav .dropdown-menu:hover {
  display: block;
}

.main-nav .dropdown-menu li {
  margin: 0;
  list-style: none;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav .dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--secondary-color);
  padding-right: 25px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(230, 24, 32, 0.1);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.lang-switcher:hover {
  background: var(--secondary-color);
  color: var(--white) !important;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.3);
}

.header-booking-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white) !important;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-right: 20px;
  box-shadow: 0 3px 10px rgba(230, 24, 32, 0.3);
}

.header-booking-btn:hover {
  background-color: #c4151c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.4);
  color: var(--white) !important;
}

.header-booking-btn-mobile {
  display: none;
}

.lang-switcher-mobile {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  padding: 8px 12px;
  transition: all 0.3s ease;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle i {
  font-size: 22px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-arrow {
  font-size: 0.75em;
  transition: transform 0.3s ease;
}

.dropdown-arrow i {
  font-size: 12px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-gray) 100%
  );
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c4151c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(230, 24, 32, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Sections */
.section {
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 100px;
  height: 4px;
  background-color: var(--secondary-color);
}

/* Products Section */
.products-section {
  background-color: #2f2f2f;
  padding: 100px 20px;
}

.products-title {
  color: var(--white) !important;
}

.products-title::after {
  background-color: var(--secondary-color);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(230, 24, 32, 0.4);
  border: 2px solid var(--secondary-color);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h3 {
  padding: 20px;
  color: var(--primary-color);
  font-size: 1.3em;
}

.product-card a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.product-card:hover a {
  color: var(--secondary-color);
}

/* Products CTA Button */
.products-cta {
  text-align: center;
  margin-top: 50px;
}

.products-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 15px 40px;
  font-size: 1.1em;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.3);
}

.products-btn:hover {
  background-color: #c4151c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 24, 32, 0.4);
  color: var(--white);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-box {
  text-align: center;
  padding: 30px;
  background: var(--light-gray);
  border-radius: 10px;
  transition: transform 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.feature-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5em;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 20px 20px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  text-align: right;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-align: right;
}

.footer-section ul {
  list-style: none;
  text-align: right;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  text-align: right;
}

.footer-section p {
  text-align: right;
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

/* Footer Login Button */
.footer-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 25px;
  background: rgba(230, 24, 32, 0.1);
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(230, 24, 32, 0.2);
  margin-top: 10px;
}

.footer-login-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.4);
  color: var(--white) !important;
}

.footer-login-btn i {
  font-size: 16px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float i {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6),
      0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Footer Social Icons */
.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.4);
  color: var(--white);
}

.footer-social-icon:hover.fa-facebook-f {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-social-icon:hover.fa-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.footer-social-icon:hover.fa-whatsapp {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-social-icon:hover.fa-youtube {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.footer-social-icon:hover.fa-linkedin-in {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--light-gray);
  padding: 40px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Testimonials */
.testimonials {
  background: var(--light-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Banner Section */
.banner-section {
  position: relative;
}

.banner-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    position: relative;
    z-index: 10002;
  }

  .lang-switcher {
    display: none;
  }

  .header-booking-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10003;
  }

  .lang-switcher-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(230, 24, 32, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    width: 45px;
    height: 45px;
    margin: 20px auto 15px;
    transition: all 0.3s ease;
  }

  .lang-switcher-mobile:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
    transform: scale(1.05);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--white);
    width: 85%;
    max-width: 350px;
    height: 100vh;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 80px 0 30px;
  }

  .main-nav.active {
    display: block;
    right: 0;
  }

  /* Mobile menu overlay - under navbar */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .main-nav ul li {
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px 25px;
    width: 100%;
    border-radius: 0;
    font-size: 16px;
  }

  .main-nav ul li a:hover {
    background: var(--light-gray);
  }

  /* Dropdown in mobile - closed by default */
  .main-nav .dropdown::before {
    display: none !important;
  }

  .main-nav .dropdown-menu {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
    border-top: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    border-top: 1px solid #e0e0e0;
  }

  .main-nav .dropdown.active .dropdown-menu {
    display: block !important;
  }

  .main-nav .dropdown-menu li {
    border-bottom: 1px solid #e0e0e0;
  }

  .main-nav .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .main-nav .dropdown-menu a {
    padding: 12px 25px 12px 45px !important;
    font-size: 14px !important;
    color: #666 !important;
  }

  .main-nav .dropdown-menu a:hover {
    background: #e9ecef !important;
    color: var(--secondary-color) !important;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .header-booking-btn-mobile {
    display: block !important;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 18px 25px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin: 20px 0 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 3px 10px rgba(230, 24, 32, 0.3);
    border-top: 2px solid rgba(230, 24, 32, 0.2);
    transition: all 0.3s ease;
  }

  .header-booking-btn-mobile:hover {
    background-color: #c4151c;
    transform: scale(1.02);
  }

  .banner-content h1 {
    font-size: 2em !important;
  }

  .banner-content p {
    font-size: 1.1em !important;
  }

  .hero-section h1 {
    font-size: 1.8em;
  }

  .section-title {
    font-size: 2em;
  }

  .products-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-login-btn {
    font-size: 13px;
    padding: 8px 20px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}

/* Contact CTA Section */
.contact-cta-section {
  background: linear-gradient(135deg, #2f2f2f 0%, #1a1a1a 100%);
  color: white;
  padding: 80px 20px;
}

/* Social Media Icons */
.social-media-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.3em;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(230, 24, 32, 0.4);
}

.social-icon i {
  transition: transform 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.2);
}

/* Specific colors for social icons on hover */
.social-icon:hover.fa-facebook-f {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-icon:hover.fa-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4);
}

.social-icon:hover.fa-whatsapp {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.social-icon:hover.fa-youtube {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.social-icon:hover.fa-linkedin-in {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

@media (max-width: 768px) {
  .social-media-icons {
    gap: 15px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-50 {
  margin-top: 50px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* About Section Styles */
.about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 20px;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
}

.about-description {
  margin-top: 40px;
}

.lead-text {
  font-size: 1.4em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-weight: 500;
}

.about-description p {
  font-size: 1.1em;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #555;
}

.highlight-text {
  font-size: 1.15em !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  margin-top: 30px !important;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 50px 0 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3em;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1em;
  color: var(--primary-color);
  font-weight: 500;
}

.about-cta {
  margin-top: 40px;
}

/* Why Us Section - Animated Cards */
.why-us-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  padding: 100px 20px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.animated-features {
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.feature-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.feature-icon-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  font-size: 3em;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  color: var(--secondary-color);
  font-size: 1em;
}

.icon-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), #ff4757);
  border-radius: 50%;
  opacity: 0.1;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.feature-card:hover .icon-background {
  transform: scale(1.1);
  opacity: 0.2;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  line-height: 1.7;
  font-size: 1em;
}

/* Testimonials Slider */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-slider-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.testimonials-swiper {
  padding: 50px 80px 70px;
}

.testimonial-slide {
  background: var(--white);
  padding: 60px 50px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(230, 24, 32, 0.1);
  transition: all 0.3s ease;
}

.testimonial-slide:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.testimonial-quote-icon {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color), #ff4757);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
  transition: all 0.3s ease;
}

.testimonial-quote-icon i {
  font-size: 35px;
  color: var(--white);
}

.testimonial-slide:hover .testimonial-quote-icon {
  opacity: 0.25;
  transform: scale(1.1);
}

.testimonial-content {
  position: relative;
  z-index: 2;
}

.testimonial-text {
  font-size: 1.25em;
  line-height: 2;
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 40px;
  position: relative;
  padding: 0 10px;
  font-weight: 400;
}

.testimonial-author {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid rgba(230, 24, 32, 0.1);
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), #ff4757);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.3);
}

.author-avatar i {
  font-size: 24px;
  color: var(--white);
}

.author-details {
  text-align: right;
}

.author-name {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.author-rating {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.author-rating i {
  font-size: 16px;
  color: #ffc107;
  transition: transform 0.2s ease;
}

.author-rating i:hover {
  transform: scale(1.2);
}

/* Swiper Navigation - Rounded */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  border: 2px solid rgba(230, 24, 32, 0.1);
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
  display: none;
}

.testimonials-swiper .swiper-button-next i,
.testimonials-swiper .swiper-button-prev i {
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.testimonials-swiper .swiper-button-next {
  left: 0;
  right: auto;
}

.testimonials-swiper .swiper-button-prev {
  right: 0;
  left: auto;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
  background: var(--secondary-color);
  color: var(--white) !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(230, 24, 32, 0.4);
  border-color: var(--secondary-color);
}

.testimonials-swiper .swiper-button-next:hover i {
  transform: translateX(-3px);
}

.testimonials-swiper .swiper-button-prev:hover i {
  transform: translateX(3px);
}

.testimonials-swiper .swiper-pagination {
  bottom: 20px !important;
}

.testimonials-swiper .swiper-pagination-bullet {
  background: var(--secondary-color) !important;
  opacity: 0.4;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
  margin: 0 6px !important;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 35px;
  border-radius: 6px;
  background: var(--secondary-color) !important;
}

/* Animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.testimonial-slide {
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive for new sections */
@media (max-width: 768px) {
  .about-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5em;
  }

  .testimonials-swiper {
    padding: 30px 50px 60px;
  }

  .testimonial-slide {
    padding: 40px 25px;
    min-height: 300px;
  }

  .testimonial-text {
    font-size: 1.1em;
  }

  .testimonials-swiper .swiper-button-next,
  .testimonials-swiper .swiper-button-prev {
    width: 45px;
    height: 45px;
  }

  .testimonials-swiper .swiper-button-next i,
  .testimonials-swiper .swiper-button-prev i {
    font-size: 16px;
  }

  .author-info {
    flex-direction: column;
    gap: 15px;
  }

  .author-details {
    text-align: center;
  }

  .author-rating {
    justify-content: center;
  }
}

/* Login Page Styles */
body.login-page {
  background: #2f2f2f;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(230, 24, 32, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(230, 24, 32, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(230, 24, 32, 0.05) 0%,
      transparent 50%
    );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

body.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(230, 24, 32, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(230, 24, 32, 0.15) 0%,
      transparent 50%
    );
  animation: pulseBackground 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseBackground {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

body.login-page .header {
  display: none;
}

body.login-page .footer {
  display: none;
}

body.login-page .whatsapp-float {
  display: none;
}

.login-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.login-box {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out, floatAnimation 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

.login-header {
  background: var(--white);
  padding: 40px 30px;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--secondary-color);
}

.login-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(230, 24, 32, 0.05) 0%,
    transparent 70%
  );
  animation: pulseBackground 8s ease-in-out infinite;
}

/* Page Loading Indicator */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.page-loader.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hide page content when navigating - show loader immediately */
body.page-navigating > *:not(.page-loader) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

body.page-navigating .page-loader {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.page-loader-spinner {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader-spinner::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(230, 24, 32, 0.2);
  border-top-color: var(--secondary-color);
  border-right-color: var(--secondary-color);
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: spinLoader 1s linear infinite;
}

.page-loader-spinner::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(230, 24, 32, 0.1);
  border-top-color: var(--secondary-color);
  border-right-color: var(--secondary-color);
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: spinLoader 0.8s linear infinite reverse;
}

@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.page-loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.login-header .logo {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  animation: logoFloat 3s ease-in-out infinite;
}

.login-header .logo a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.login-header .logo img {
  max-height: 80px;
  width: auto;
  filter: none;
  transition: transform 0.3s ease;
}

.login-header .logo:hover img {
  transform: scale(1.1);
}

.login-header .logo a:hover {
  opacity: 0.9;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
  text-shadow: none;
  position: relative;
  z-index: 1;
  animation: slideInDown 0.8s ease-out 0.2s both;
}

.login-header p {
  margin: 10px 0 0;
  color: #666;
  font-size: 15px;
  position: relative;
  z-index: 1;
  animation: slideInDown 0.8s ease-out 0.4s both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-body {
  padding: 40px 30px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.form-group {
  animation: fadeInUp 0.6s ease-out both;
}

.form-group:nth-child(1) {
  animation-delay: 0.4s;
}

.form-group:nth-child(2) {
  animation-delay: 0.5s;
}

.form-group:nth-child(3) {
  animation-delay: 0.6s;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 1;
  width: 20px;
  text-align: center;
}

.form-input-wrapper:hover i,
.form-input-wrapper input:focus + i,
.form-input-wrapper input:not(:placeholder-shown) + i {
  color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.form-input-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: "Tajawal", "Arial", sans-serif;
  transition: all 0.3s ease;
  background: #f9f9f9;
  color: var(--primary-color);
  position: relative;
}

.form-input-wrapper input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(230, 24, 32, 0.1),
    0 5px 15px rgba(230, 24, 32, 0.15);
  transform: translateY(-2px);
}

.form-input-wrapper input::placeholder {
  color: #999;
  transition: opacity 0.3s ease;
}

.form-input-wrapper input:focus::placeholder {
  opacity: 0.5;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--secondary-color);
}

.remember-me label {
  color: #666;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #c4151c;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c4151c 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Tajawal", "Arial", sans-serif;
  box-shadow: 0 5px 15px rgba(230, 24, 32, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
  width: 300px;
  height: 300px;
}

.login-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(230, 24, 32, 0.5);
}

.login-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.login-btn i {
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.login-btn:hover i {
  transform: translateX(-3px);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.alert-success {
  background: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

.alert i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .login-container {
    max-width: 100%;
  }

  .login-header {
    padding: 30px 20px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .login-body {
    padding: 30px 20px;
  }

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
