
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Modulus+Pro:wght@300;400;500;600;700;800;900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700&display=swap');

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="rtl"] .custom-navbar .custom-navbar-nav li a:before {
  left: auto;
  right: 8px;
}

[dir="rtl"] .hero .hero-img-wrap img {
  right: auto;
  top: -12px;
  left: -6px;
}

[dir="rtl"] .hero .hero-img-wrap:after {
  right: 80%;
}

[dir="rtl"] .d-flex.gap-3 {
  flex-direction: row-reverse;
}

/* Base Styles */
body {
  overflow-x: hidden;
  position: relative;
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  line-height: 28px;
  color: #18170e;
  font-size: 14px;
  background-color: #fcfcf3;
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
  color: #18170e;
  text-decoration: underline;
}
a:hover {
  color: #18170e;
  text-decoration: none;
}

/* Container and RTL Layout Fixes */
.container, .container-fluid {
  direction: rtl;
  text-align: right;
}

/* Ensure proper RTL behavior on mobile */
@media (max-width: 991px) {
  .container, .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
  }

  .row {
    margin-right: -15px;
    margin-left: -15px;
    direction: rtl;
  }

  /* Fix hero section positioning */
  .hero {
    direction: rtl;
    text-align: right;
  }

  .hero .intro-excerpt {
    text-align: right;
    direction: rtl;
  }
}

.custom-navbar {
  background: #4a6e38 !important;
  padding-top: 20px;
  padding-bottom: 20px;
}
.custom-navbar .navbar-brand {
  font-family: "Cairo", sans-serif;
  font-size: 40px;
  font-weight: 800;
}
.custom-navbar .navbar-brand > span {
  opacity: 0.4;
}
.custom-navbar .navbar-toggler {
  border-color: transparent;
}
.custom-navbar .navbar-toggler:active,
.custom-navbar .navbar-toggler:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}
@media (min-width: 992px) {
  .custom-navbar .custom-navbar-nav li {
    margin-left: 15px;
    margin-right: 15px;
  }
}
.custom-navbar .custom-navbar-nav li a {
  font-weight: 500;
  color: #ffffff !important;
  opacity: 0.5;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
  position: relative;
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-nav li a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    background: #ede78d;
    height: 2px;
    opacity: 1;
    visibility: visible;
    width: 0;
    -webkit-transition: 0.15s all ease-out;
    -o-transition: 0.15s all ease-out;
    transition: 0.15s all ease-out;
  }
}
.custom-navbar .custom-navbar-nav li a:hover {
  opacity: 1;
}
.custom-navbar .custom-navbar-nav li a:hover:before {
  width: calc(100% - 16px);
}
.custom-navbar .custom-navbar-nav li.active a {
  opacity: 1;
}
.custom-navbar .custom-navbar-nav li.active a:before {
  width: calc(100% - 16px);
}
.custom-navbar .custom-navbar-cta {
  margin-left: 0 !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-cta {
    margin-left: 40px !important;
  }
}
.custom-navbar .custom-navbar-cta li {
  margin-left: 0px;
  margin-right: 0px;
}
.custom-navbar .custom-navbar-cta li:first-child {
  margin-right: 20px;
}

.hero {
  background: #4a6e38;
  padding: calc(4rem - 30px) 0 0rem 0;
}
@media (min-width: 768px) {
  .hero {
    padding: calc(4rem - 30px) 0 0rem 0;
  }
}
@media (min-width: 992px) {
  .hero {
    padding: calc(8rem - 30px) 0 0rem 0;
  }
}
.hero .intro-excerpt {
  position: relative;
  z-index: 4;
}
@media (min-width: 992px) {
  .hero .intro-excerpt {
    max-width: 450px;
  }
}
.hero h1 {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
}
@media (min-width: 1400px) {
  .hero h1 {
    font-size: 54px;
  }
}
.hero p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
}
.hero .hero-img-wrap {
  position: relative;
}
.hero .hero-img-wrap img {
  position: relative;
  top: 0px;
  right: 0px;
  z-index: 2;
  max-width: 780px;
  left: -20px;
}
@media (min-width: 768px) {
  .hero .hero-img-wrap img {
    right: 0px;
    left: -100px;
  }
}
@media (min-width: 992px) {
  .hero .hero-img-wrap img {
    left: 0px;
    top: -80px;
    position: absolute;
    right: -50px;
  }
}
@media (min-width: 1200px) {
  .hero .hero-img-wrap img {
    left: 0px;
    top: -24px;
    right: -100px;
  }
}
.hero .hero-img-wrap:after {
  content: "";
  position: absolute;
  width: 255px;
  height: 217px;
  background-image: url("../images/dots-light.svg");
  background-size: contain;
  background-repeat: no-repeat;
  right: 80%;
  top: -0px;
}
@media (min-width: 1200px) {
  .hero .hero-img-wrap:after {
    top: -40px;
  }
}

.btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  color: #ffffff;
  background: #18170e;
  border-color: #18170e;
}
.btn:hover {
  color: #ffffff;
  background: #000000;
  border-color: #000000;
}
.btn:active,
.btn:focus {
  outline: none !important;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn.btn-primary {
  background: #4a6e38;
  border-color: #4a6e38;
}
.btn.btn-primary:hover {
  background: #2c4222;
  border-color: #2c4222;
}
.btn.btn-secondary {
  color: #18170e;
  background: #ede78d;
  border-color: #ede78d;
}
.btn.btn-secondary:hover {
  background: #e8e066;
  border-color: #e8e066;
}
.btn.btn-white-outline {
  background: transparent;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.btn-white-outline:hover {
  border-color: white;
  color: #ffffff;
}

.section-title {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  color: #18170e;
}

.product-section {
  padding: 7rem 0;
}
.product-section .product-item {
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  padding-bottom: 50px;
  cursor: pointer;
}
.product-section .product-item .product-thumbnail {
  margin-bottom: 30px;
  position: relative;
  top: 0;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.product-section .product-item h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.product-section .product-item strong {
  font-weight: 800 !important;
  font-size: 18px !important;
}
.product-section .product-item h3,
.product-section .product-item strong {
  color: #18170e;
  text-decoration: none;
}
.product-section .product-item .icon-cross {
  position: absolute;
  width: 35px;
  height: 35px;
  display: inline-block;
  background: #18170e;
  bottom: 15px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  margin-bottom: -17.5px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.product-section .product-item .icon-cross img {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.product-section .product-item:before {
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  content: "";
  background: #dce5e4;
  height: 0%;
  z-index: -1;
  border-radius: 10px;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.product-section .product-item:hover .product-thumbnail {
  top: -25px;
}
.product-section .product-item:hover .icon-cross {
  bottom: 0;
  opacity: 1;
  visibility: visible;
}
.product-section .product-item:hover:before {
  height: 70%;
}

.why-choose-section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.why-choose-section .why-choose-arabic {
  position: relative;
  z-index: 2;
}
.why-choose-section .why-choose-arabic .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c4222;
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.2;
}
.why-choose-section .why-choose-arabic .description {
  font-size: 1.15rem;
  line-height: 2;
  color: #18170e;
  position: relative;
  z-index: 1;
}
.why-choose-section .why-choose-arabic .description strong {
  font-weight: 700;
  color: #18170e;
}
.why-choose-section .img-wrap {
  position: relative;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 500px;
}
.why-choose-section .img-wrap img {
  border-radius: 25px;
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  object-position: center;
  -webkit-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  display: block;
}
.why-choose-section .img-wrap:hover img {
  -webkit-transform: scale(1.10);
  -ms-transform: scale(1.10);
  transform: scale(1.10);
}

/* ===== FEATURES SHOWCASE SECTION ===== */
.features-showcase {
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.features-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(74, 110, 56, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(237, 231, 141, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.feature-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4a6e38, #ede78d, #4a6e38);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(74, 110, 56, 0.15);
  border-color: rgba(74, 110, 56, 0.2);
}

.feature-image {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0e6, #dce5e4);
}

.feature-image img {
  width: 100%;
  height: 103%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
  background: #ffffff;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
  filter: brightness(0.95);
}

.feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: none;
  pointer-events: none;
}

.feature-card:hover .feature-overlay {
  opacity: 0;
}

.overlay-content i {
  font-size: 4rem;
  color: #ede78d;
  animation: bounceIcon 0.6s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.feature-content {
  padding: 2rem 1.75rem 2.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.feature-title {
  font-family: "Cairo", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a6e38;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: #2c4222;
}

.feature-description {
  font-family: "Cairo", sans-serif;
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(74, 110, 56, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(74, 110, 56, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-highlight {
  background: rgba(74, 110, 56, 0.1);
  border-color: rgba(74, 110, 56, 0.3);
}

.feature-highlight i {
  font-size: 1.25rem;
  color: #4a6e38;
}

.feature-highlight span {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #18170e;
}

/* Responsive Design */
@media (max-width: 991px) {
  .features-showcase {
    padding: 4rem 0 5rem;
  }

  .feature-image {
    height: 450px;
  }

  .feature-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 767px) {
  .features-showcase {
    padding: 3rem 0 4rem;
  }

  .feature-image {
    height: 400px;
  }

  .feature-card {
    margin-bottom: 1.5rem;
  }

  .feature-content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .overlay-content i {
    font-size: 3rem;
  }
}

@media (max-width: 575px) {
  .feature-image {
    height: 380px;
  }
}
/* ===== END FEATURES SHOWCASE SECTION ===== */

/* Services Section */
.services-section {
  padding-bottom: 9rem;
}

.services-section .section-title {
  font-family: "Cairo", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #2c4222;
  margin-bottom: 1rem;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(74, 110, 56, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6e38, #2c4222);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(74, 110, 56, 0.15);
  border-color: #4a6e38;
}

.service-card.highlight-card {
  background: linear-gradient(135deg, #f0f7ed 0%, #ffffff 100%);
}

.service-icon-wrap {
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(74, 110, 56, 0.1), rgba(74, 110, 56, 0.05));
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 20px rgba(74, 110, 56, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

.service-icon-wrap::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(74, 110, 56, 0.2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.service-card:hover .service-icon-wrap {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(74, 110, 56, 0.25);
  background: linear-gradient(135deg, rgba(74, 110, 56, 0.15), rgba(74, 110, 56, 0.08));
}

.service-icon {
  font-size: 3rem;
  color: #4a6e38;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: #2c4222;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.service-card-title {
  font-family: "Cairo", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a6e38;
  margin-bottom: 1rem;
  text-align: center;
}

.service-description {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 1.5rem;
  text-align: right;
}

.service-includes-title {
  font-family: "Cairo", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c4222;
  margin-bottom: 1rem;
  text-align: right;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  font-family: "Cairo", sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #18170e;
  margin-bottom: 1rem;
  padding-right: 1.5rem;
  position: relative;
  text-align: right;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #4a6e38;
  font-weight: 700;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

.service-list.additional-services li {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.service-highlight-text {
  font-family: "Cairo", sans-serif;
  font-size: 1.3rem;
  line-height: 2;
  color: #2c4222;
  font-weight: 600;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(74, 110, 56, 0.05);
  border-radius: 15px;
  margin-top: 2rem;
}

/* Read More Functionality */
.service-item-hidden {
  transition: all 0.3s ease;
}

.service-list-collapsed .service-item-hidden {
  display: none !important;
}

.read-more-btn {
  background: linear-gradient(135deg, #4a6e38 0%, #2c4222 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(74, 110, 56, 0.2);
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #2c4222 0%, #4a6e38 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 110, 56, 0.3);
}

.read-more-btn:active {
  transform: translateY(0);
}

.read-more-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.read-more-btn:hover .read-more-icon {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .services-section .section-title {
    font-size: 2rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-card-title {
    font-size: 1.3rem;
  }
}

.feature {
  margin-bottom: 30px;
}
.feature .icon {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}
.feature .icon:before {
  content: "";
  width: 33px;
  height: 33px;
  position: absolute;
  background: rgba(74, 110, 56, 0.2);
  border-radius: 50%;
  right: -8px;
  bottom: 0;
}
.feature h3 {
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #18170e;
}
.feature p {
  font-size: 14px;
  line-height: 22px;
  color: #18170e;
}

/* Airbnb Gallery Section */
.gallery-section {
  padding-bottom: 15rem;
  background: #fcfcf3;
  overflow: hidden;
}

.gallery-section .section-subtitle {
  font-family: "Cairo", sans-serif;
  font-size: 1.1rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.gallery-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.gallery-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 340px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(74, 110, 56, 0.08);
  position: relative;
}

.gallery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6e38, #6b9e54, #4a6e38);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 10;
  border-radius: 24px 24px 0 0;
}

.gallery-card:hover::before {
  transform: scaleX(0);
}

.gallery-card:hover {
  transform: none;
  border-color: rgba(74, 110, 56, 0.08);
}

.card-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0e6, #dce5e4);
}

.card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-card:hover .card-image::after {
  opacity: 0;
}

.card-image a {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: none;
  filter: brightness(1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  background: #f5f8fc;
}

.gallery-card:hover .card-image img {
  transform: none;
  filter: brightness(1);
}

.card-overlay {
  display: none !important;
}

.card-content {
  display: none !important;
}

.card-title {
  display: none !important;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(74, 110, 56, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: #4a6e38;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
  background: #4a6e38;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(74, 110, 56, 0.3);
  border-color: #4a6e38;
}

.gallery-prev {
  right: 0;
}

.gallery-next {
  left: 0;
}

/* Tablet Styles (iPad, iPad Mini, etc.) */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-section {
    padding-bottom: 10rem;
  }

  .gallery-container {
    padding: 0 70px;
  }

  .gallery-card {
    flex: 0 0 360px;
  }

  .card-image {
    height: 320px;
  }

  .gallery-nav {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) and (min-width: 577px) {
  .gallery-section {
    padding-bottom: 8rem;
  }

  .gallery-container {
    padding: 0 50px;
  }

  .gallery-card {
    flex: 0 0 300px;
  }

  .card-image {
    height: 280px;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .gallery-section {
    padding-bottom: 6rem;
  }

  .gallery-container {
    padding: 0 45px;
  }

  .gallery-card {
    flex: 0 0 280px;
  }

  .card-image {
    height: 260px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .gallery-track {
    gap: 1.5rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 420px) {
  .gallery-container {
    padding: 0 40px;
  }

  .gallery-card {
    flex: 0 0 260px;
  }

  .card-image {
    height: 240px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

.we-help-section {
  padding: 7rem 0;
}
.we-help-section .imgs-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-columns: repeat(27, 1fr);
  position: relative;
}
.we-help-section .imgs-grid:before {
  position: absolute;
  content: "";
  width: 255px;
  height: 217px;
  background-image: url("../images/dots-green.svg");
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-transform: translate(-40%, -40%);
  -ms-transform: translate(-40%, -40%);
  transform: translate(-40%, -40%);
  z-index: -1;
}
.we-help-section .imgs-grid .grid {
  position: relative;
}
.we-help-section .imgs-grid .grid img {
  border-radius: 20px;
  max-width: 100%;
}
.we-help-section .imgs-grid .grid.grid-1 {
  -ms-grid-column: 1;
  -ms-grid-column-span: 18;
  grid-column: 1 / span 18;
  -ms-grid-row: 1;
  -ms-grid-row-span: 27;
  grid-row: 1 / span 27;
}
.we-help-section .imgs-grid .grid.grid-2 {
  -ms-grid-column: 19;
  -ms-grid-column-span: 27;
  grid-column: 19 / span 27;
  -ms-grid-row: 1;
  -ms-grid-row-span: 5;
  grid-row: 1 / span 5;
  padding-left: 20px;
}
.we-help-section .imgs-grid .grid.grid-3 {
  -ms-grid-column: 14;
  -ms-grid-column-span: 16;
  grid-column: 14 / span 16;
  -ms-grid-row: 6;
  -ms-grid-row-span: 27;
  grid-row: 6 / span 27;
  padding-top: 20px;
}

.custom-list {
  width: 100%;
}
.custom-list li {
  display: inline-block;
  width: calc(50% - 20px);
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}
.custom-list li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #4a6e38;
  position: absolute;
  left: 0;
  top: 8px;
}

.popular-product {
  padding: 0 0 7rem 0;
}
.popular-product .product-item-sm h3 {
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #18170e;
}
.popular-product .product-item-sm a {
  text-decoration: none;
  color: #18170e;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.popular-product .product-item-sm a:hover {
  color: rgba(24, 23, 14, 0.5);
}
.popular-product .product-item-sm p {
  line-height: 1.4;
  margin-bottom: 10px;
  font-size: 14px;
}
.popular-product .product-item-sm .thumbnail {
  margin-right: 10px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 120px;
  flex: 0 0 120px;
  position: relative;
}
.popular-product .product-item-sm .thumbnail:before {
  content: "";
  position: absolute;
  border-radius: 20px;
  background: #dce5e4;
  width: 98px;
  height: 98px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.testimonial-section {
  padding: 3rem 0 7rem 0;
}

.testimonial-slider-wrap {
  position: relative;
}
.testimonial-slider-wrap .tns-inner {
  padding-top: 30px;
}
.testimonial-slider-wrap .item .testimonial-block blockquote {
  font-size: 16px;
}
@media (min-width: 768px) {
  .testimonial-slider-wrap .item .testimonial-block blockquote {
    line-height: 32px;
    font-size: 18px;
  }
}
.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic {
  margin-bottom: 20px;
}
.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic img {
  max-width: 80px;
  border-radius: 50%;
}
.testimonial-slider-wrap .item .testimonial-block .author-info h3 {
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #18170e;
  margin-bottom: 0;
}
.testimonial-slider-wrap #testimonial-nav {
  position: absolute;
  top: 50%;
  z-index: 99;
  width: 100%;
  display: none;
}
@media (min-width: 768px) {
  .testimonial-slider-wrap #testimonial-nav {
    display: block;
  }
}
.testimonial-slider-wrap #testimonial-nav > span {
  cursor: pointer;
  position: absolute;
  width: 58px;
  height: 58px;
  line-height: 58px;
  border-radius: 50%;
  background: rgba(74, 110, 56, 0.1);
  color: #18170e;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.testimonial-slider-wrap #testimonial-nav > span:hover {
  background: #4a6e38;
  color: #ffffff;
}
.testimonial-slider-wrap #testimonial-nav .prev {
  left: -10px;
}
.testimonial-slider-wrap #testimonial-nav .next {
  right: 0;
}
.testimonial-slider-wrap .tns-nav {
  position: absolute;
  bottom: -50px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
.testimonial-slider-wrap .tns-nav button {
  background: none;
  border: none;
  display: inline-block;
  position: relative;
  width: 0 !important;
  height: 7px !important;
  margin: 2px;
}
.testimonial-slider-wrap .tns-nav button:active,
.testimonial-slider-wrap .tns-nav button:focus,
.testimonial-slider-wrap .tns-nav button:hover {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  background: none;
}
.testimonial-slider-wrap .tns-nav button:before {
  display: block;
  width: 7px;
  height: 7px;
  left: 0;
  top: 0;
  position: absolute;
  content: "";
  border-radius: 50%;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
  background-color: #d6d6d6;
}
.testimonial-slider-wrap .tns-nav button:hover:before,
.testimonial-slider-wrap .tns-nav button.tns-nav-active:before {
  background-color: #4a6e38;
}

.before-footer-section {
  padding: 7rem 0 12rem 0 !important;
}

.blog-section {
  padding: 7rem 0 12rem 0;
}
.blog-section .post-entry a {
  text-decoration: none;
}
.blog-section .post-entry .post-thumbnail {
  display: block;
  margin-bottom: 20px;
}
.blog-section .post-entry .post-thumbnail img {
  border-radius: 20px;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.blog-section .post-entry .post-content-entry {
  padding-left: 15px;
  padding-right: 15px;
}
.blog-section .post-entry .post-content-entry h3 {
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  margin-bottom: 0;
  font-weight: 700;
  margin-bottom: 7px;
}
.blog-section .post-entry .post-content-entry .meta {
  font-size: 14px;
}
.blog-section .post-entry .post-content-entry .meta a {
  font-weight: 600;
}
.blog-section .post-entry:hover .post-thumbnail img,
.blog-section .post-entry:focus .post-thumbnail img {
  opacity: 0.7;
}

.footer-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}
.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4a6e38, transparent);
}
.footer-section .relative {
  position: relative;
}
.footer-section a {
  text-decoration: none;
  color: #18170e;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
}
.footer-section a:hover {
  color: #4a6e38;
  -webkit-transform: translateX(-3px);
  -ms-transform: translateX(-3px);
  transform: translateX(-3px);
}
.footer-section .sofa-img {
  position: absolute;
  top: -200px;
  z-index: 1;
  right: 0;
  -webkit-animation: floatSofa 4s ease-in-out infinite;
  animation: floatSofa 4s ease-in-out infinite;
}
.footer-section .sofa-img img {
  max-width: 380px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}
@-webkit-keyframes floatSofa {
  0%, 100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
  }
  50% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@keyframes floatSofa {
  0%, 100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
  }
  50% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
.footer-section .links-wrap {
  margin-top: 0px;
}
@media (min-width: 992px) {
  .footer-section .links-wrap {
    margin-top: 54px;
  }
}
.footer-section .links-wrap ul li {
  margin-bottom: 0;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.footer-section .links-wrap ul li:hover {
  -webkit-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  transform: translateY(-3px);
}
.footer-section .links-wrap ul li a {
  display: inline-block;
  padding: 5px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #4a6e38;
}
.footer-section .links-wrap ul li a:hover {
  color: #2c4222;
}
.footer-section .footer-logo-wrap .footer-logo {
  font-family: "Cairo", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-decoration: none;
  color: #4a6e38;
  display: inline-block;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
}
.footer-section .footer-logo-wrap .footer-logo:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  color: #2c4222;
}
.footer-section .footer-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #6c757d;
}
.footer-section .custom-social li {
  margin: 5px;
  display: inline-block;
}
.footer-section .custom-social li a {
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  display: inline-block;
  background: linear-gradient(135deg, #e8f0e6, #dce5e4);
  color: #4a6e38;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.footer-section .custom-social li a:hover {
  background: linear-gradient(135deg, #4a6e38, #2c4222);
  color: #ffffff;
  -webkit-transform: translateY(-5px) scale(1.1);
  -ms-transform: translateY(-5px) scale(1.1);
  transform: translateY(-5px) scale(1.1);
  -webkit-box-shadow: 0 8px 20px rgba(74, 110, 56, 0.3);
  box-shadow: 0 8px 20px rgba(74, 110, 56, 0.3);
}
.footer-section .border-top {
  border-color: rgba(74, 110, 56, 0.15) !important;
  border-width: 2px !important;
}
.footer-section .border-top.copyright {
  font-size: 14px !important;
  color: #6c757d;
  padding-top: 2rem !important;
}
.footer-section .copyright p {
  font-weight: 500;
}

.untree_co-section {
  padding: 7rem 0;
}

.form-control {
  height: 50px;
  border-radius: 10px;
  font-family: "Cairo", sans-serif;
}
.form-control:active,
.form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #4a6e38;
  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
}
.form-control::-webkit-input-placeholder {
  font-size: 14px;
}
.form-control::-moz-placeholder {
  font-size: 14px;
}
.form-control:-ms-input-placeholder {
  font-size: 14px;
}
.form-control:-moz-placeholder {
  font-size: 14px;
}

.service {
  line-height: 1.5;
}
.service .service-icon {
  border-radius: 10px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50px;
  flex: 0 0 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #4a6e38;
  margin-right: 20px;
  color: #ffffff;
}

textarea {
  height: auto !important;
}

.site-blocks-table {
  overflow: auto;
}
.site-blocks-table .product-thumbnail {
  width: 200px;
}
.site-blocks-table .btn {
  padding: 2px 10px;
}
.site-blocks-table thead th {
  padding: 30px;
  text-align: center;
  border-width: 0px !important;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.8);
  font-size: 18px;
}
.site-blocks-table td {
  padding: 20px;
  text-align: center;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.8);
}
.site-blocks-table tbody tr:first-child td {
  border-top: 1px solid #4a6e38 !important;
}
.site-blocks-table .btn {
  background: none !important;
  color: #000000;
  border: none;
  height: auto !important;
}

.site-block-order-table th {
  border-top: none !important;
  border-bottom-width: 1px !important;
}

.site-block-order-table td,
.site-block-order-table th {
  color: #000000;
}

.couponcode-wrap input {
  border-radius: 10px !important;
}

.text-primary {
  color: #4a6e38 !important;
}
.list-unstyled {
    padding-left: 41px;
    list-style: none;
}
/* Additional Arabic and RTL Improvements */
[dir="rtl"] .d-flex.gap-3 {
  flex-direction: row-reverse;
}

[dir="rtl"] .d-flex.align-items-center span.me-1 {
  margin-left: 0.25rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .d-flex.align-items-center span.ms-1 {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .list-unstyled.d-inline-flex.me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="rtl"] .list-unstyled.d-inline-flex.ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

[dir="rtl"] .list-unstyled.d-inline-flex li.me-4 {
  margin-left: 1.5rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .list-unstyled.d-inline-flex li.ms-4 {
  margin-right: 1.5rem !important;
  margin-left: 0 !important;
}

/* Arabic Typography Classes */
.arabic-text {
  font-family: "Cairo", sans-serif;
  line-height: 1.8;
}

.arabic-heading {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

.arabic-brand {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

/* RTL Layout Classes */
.rtl-text {
  text-align: right;
  direction: rtl;
}

.rtl-flex {
  flex-direction: row-reverse;
}

.rtl-input {
  text-align: right;
}

/* Hero Section Arabic Styles */
.hero-arabic {
  font-family: "Cairo", sans-serif;
}

.hero-arabic .intro-excerpt {
  text-align: right;
}

.hero-arabic h1 {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
}

.hero-arabic h1 span {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
}

.hero-arabic p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Product Section Arabic Styles */
.product-section-arabic .section-title {
  font-family: "Cairo", sans-serif;
}

.product-section-arabic .product-description {
  font-family: "Cairo", sans-serif;
}

.product-section-arabic .product-title {
  font-family: "Cairo", sans-serif;
}

/* Why Choose Us Arabic Styles */
.why-choose-arabic {
  text-align: right;
}

.why-choose-arabic .section-title {
  font-family: "Cairo", sans-serif;
}

.why-choose-arabic .description {
  font-family: "Cairo", sans-serif;
}

.why-choose-arabic .feature {
  text-align: right;
}

.why-choose-arabic .feature h3 {
  font-family: "Cairo", sans-serif;
}

.why-choose-arabic .feature p {
  font-family: "Cairo", sans-serif;
}

/* We Help Section Arabic Styles */
.we-help-arabic {
  text-align: right;
}

.we-help-arabic .section-title {
  font-family: "Cairo", sans-serif;
}

.we-help-arabic .description {
  font-family: "Cairo", sans-serif;
}

.we-help-arabic .custom-list {
  font-family: "Cairo", sans-serif;
}

/* Popular Product Arabic Styles */
.popular-product-arabic .product-item-sm {
  text-align: right;
  flex-direction: row-reverse;
}

.popular-product-arabic .product-item-sm .thumbnail {
  margin-left: 10px;
  margin-right: 0;
}

.popular-product-arabic .product-item-sm h3 {
  font-family: "Cairo", sans-serif;
}

.popular-product-arabic .product-item-sm p {
  font-family: "Cairo", sans-serif;
}

/* Testimonial Arabic Styles */
.testimonial-arabic .section-title {
  font-family: "Cairo", sans-serif;
}

/* Blog Section Arabic Styles */
.blog-arabic .section-title {
  font-family: "Cairo", sans-serif;
  text-align: right;
}

.blog-arabic .post-content-entry {
  text-align: right;
}

.blog-arabic .post-content-entry h3 a {
  font-family: "Cairo", sans-serif;
}

.blog-arabic .post-content-entry .meta {
  font-family: "Cairo", sans-serif;
}

/* Footer Arabic Styles */
.footer-arabic .subscription-form h3 {
  direction: rtl;
  font-family: "Cairo", sans-serif;
}

.footer-arabic .footer-brand {
  font-family: "Cairo", sans-serif;
}

.footer-arabic .footer-description {
  font-family: "Cairo", sans-serif;
  text-align: right;
}

.footer-arabic .footer-links {
  text-align: right;
  font-family: "Cairo", sans-serif;
}

.footer-arabic .copyright {
  text-align: right;
  font-family: "Cairo", sans-serif;
}

.footer-arabic .copyright-links {
  text-align: right;
  font-family: "Cairo", sans-serif;
}

/* Improve readability for Arabic text */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cairo", sans-serif;
}

p, span, div {
  font-family: "Cairo", sans-serif;
}

.thankyou-icon {
  position: relative;
  color: #4a6e38;
}
.thankyou-icon:before {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(74, 110, 56, 0.2);
}

/* ===== PAGE LOAD ANIMATIONS ===== */

/* Page Loading State */
.page-loading {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100vh !important;
}

.page-loading * {
  animation-play-state: paused;
}

body.page-loading {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100% !important;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b5d50 0%, #2d4a3e 50%, #1f3129 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  transition: all 0.5s ease;
}

.page-loader.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.loader-container {
  text-align: center;
  color: white;
}

.loader-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-icon-loader {
  width: 350px;
  height: 350px;
  display: flex;
  align-items: right;
  justify-content: right;
  animation: brandPulse 2s infinite;
}

.brand-icon-loader img {
  width: 85%;
  height: 136%;
  object-fit: contain;
}

.brand-text-loader {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Cairo", sans-serif;
  animation: textGlow 2s infinite alternate;
}

.loader-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 2rem auto;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: #ede78d;
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-right-color: rgba(237, 231, 141, 0.7);
  animation-delay: 0.3s;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}

.spinner-ring:nth-child(3) {
  border-bottom-color: rgba(237, 231, 141, 0.5);
  animation-delay: 0.6s;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.9;
  animation: textPulse 1.5s infinite;
}

/* Base Animation States */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-element.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Types */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.animated {
  opacity: 1;
}

.slide-down {
  transform: translateY(-50px);
  opacity: 0;
}

.slide-down.animated {
  transform: translateY(0);
  opacity: 1;
}

.slide-up {
  transform: translateY(50px);
  opacity: 0;
}

.slide-up.animated {
  transform: translateY(0);
  opacity: 1;
}

.slide-in-left {
  transform: translateX(-50px);
  opacity: 0;
}

.slide-in-left.animated {
  transform: translateX(0);
  opacity: 1;
}

.slide-in-right {
  transform: translateX(50px);
  opacity: 0;
}

.slide-in-right.animated {
  transform: translateX(0);
  opacity: 1;
}

.scale-in {
  transform: scale(0.8);
  opacity: 0;
}

.scale-in.animated {
  transform: scale(1);
  opacity: 1;
}

.rotate-in {
  transform: rotate(-10deg) scale(0.9);
  opacity: 0;
}

.rotate-in.animated {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* Keyframe Animations */
@keyframes brandPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes textGlow {
  0% { text-shadow: 0 0 10px rgba(237, 231, 141, 0.5); }
  100% { text-shadow: 0 0 20px rgba(237, 231, 141, 0.8), 0 0 30px rgba(237, 231, 141, 0.4); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes textPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes floatUp {
  0% { transform: translateY(100px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideInFade {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive Animations */
@media (max-width: 768px) {
  .animate-element {
    transform: translateY(20px);
    transition: all 0.6s ease;
  }

  .slide-in-left,
  .slide-in-right {
    transform: translateY(30px);
  }

  .slide-in-left.animated,
  .slide-in-right.animated {
    transform: translateY(0);
  }

  .brand-icon-loader {
    width: 350px;
    height: 350px;
    font-size: 1.5rem;
  }

  .brand-text-loader {
    font-size: 2rem;
  }

  .loader-spinner {
    width: 80px;
    height: 80px;
  }
}

/* Tablet Responsive Animations */
@media (max-width: 991px) and (min-width: 769px) {
  .animate-element {
    transition: all 0.7s ease;
  }

  .brand-text-loader {
    font-size: 2.2rem;
  }

  .loader-spinner {
    width: 90px;
    height: 90px;
  }
}

/* Performance Optimizations */
.animate-element {
  will-change: transform, opacity;
}

.page-loaded .animate-element {
  will-change: auto;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-element,
  .page-loader,
  .loader-spinner,
  .brand-icon-loader,
  .brand-text-loader {
    animation: none !important;
    transition: none !important;
  }

  .animate-element {
    opacity: 1;
    transform: none;
  }
}

/* Brand Icon Image Styles */
.brand-icon-loader {
  overflow: hidden !important;
}

.imageloading img {
  width: 15%;
  height: 75%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.imageloading img:hover {
  transform: scale(1.1);
}

/* ===== END PAGE LOAD ANIMATIONS ===== */

/* ===== MOBILE DRAWER NAVIGATION ===== */

/* Hide desktop menu on mobile phones only */
@media (max-width: 768px) {
  .desktop-menu {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block !important;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2000;
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
  }
}

/* Show desktop menu on tablets and hide mobile menu button */
@media (min-width: 768px) {
  .mobile-menu-btn,
  .navbar-toggler,
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }

  .desktop-menu {
    display: flex !important;
  }
}

/* Ensure mobile drawer appears on top on mobile devices only */
@media (max-width: 768px) {
  .mobile-drawer-overlay {
    z-index: 2147483647 !important;
    position: fixed !important;
    pointer-events: none !important;
  }

  .mobile-drawer-overlay.active {
    pointer-events: all !important;
  }

  .mobile-drawer {
    z-index: 2147483647 !important;
    position: fixed !important;
    display: flex !important;
    pointer-events: all !important;
  }
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2147483647 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  left: -320px !important; /* Start off-screen from left */
  width: 300px !important;
  height: 100vh !important;
  background: linear-gradient(180deg, #3b5d50 0%, #2d4a3e 100%);
  z-index: 2147483647 !important;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  display: flex !important;
  flex-direction: column;
  overflow-y: auto;
  pointer-events: all !important;
}

.mobile-drawer.active {
  left: 0 !important;
}

/* Drawer Header */
.drawer-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ede78d, #d4c94a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c4222;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(237, 231, 141, 0.3);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  font-family: "Cairo", sans-serif;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Drawer Content */
.drawer-content {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-item {
  margin: 0.25rem 1rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.drawer-link::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: right 0.5s ease;
}

.drawer-link:hover::before {
  right: 100%;
}

.drawer-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.drawer-link:hover i {
  color: #ede78d;
  transform: scale(1.2);
}

.drawer-item.active .drawer-link {
  background: linear-gradient(135deg, rgba(237, 231, 141, 0.2), rgba(237, 231, 141, 0.1));
  color: white;
  border-right: 4px solid #ede78d;
  font-weight: 600;
}

.drawer-item.active .drawer-link i {
  color: #ede78d;
}

/* Drawer Footer */
.drawer-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4a6e38, #3b5d50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-info {
  flex: 1;
}

.user-name {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* Animation for drawer items */
.mobile-drawer.active .drawer-item {
  animation: slideInFromRight 0.4s ease forwards;
}

.mobile-drawer.active .drawer-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-drawer.active .drawer-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-drawer.active .drawer-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-drawer.active .drawer-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-drawer.active .drawer-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-drawer.active .drawer-item:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== END MOBILE DRAWER NAVIGATION ===== */

/* ===== RESPONSIVE STYLES - MOBILE AND TABLET ===== */

/* Large Tablets (768px - 991px) */
@media (max-width: 991px) {

  /* General */
  body {
    font-size: 16px;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Navigation */
  .custom-navbar {
    padding: 15px 0;
  }

  .custom-navbar .navbar-brand {
    font-size: 32px;
  }

  .custom-navbar .custom-navbar-nav li a {
    padding: 10px 15px;
    margin: 5px 0;
  }

  /* Hero Section */
  .hero {
    padding: 3rem 0 2rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .hero .hero-img-wrap img {
    max-width: 100%;
    left: 0;
    right: 0;
    top: 0;
    position: relative;
  }

  .hero .hero-img-wrap:after {
    display: none;
  }

  .hero .d-flex.gap-3 {
    flex-direction: column;
    gap: 15px !important;
  }

  .hero .btn {
    width: 100%;
    text-align: center;
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  /* Why Choose Section */
  .why-choose-section {
    padding: 4rem 0;
  }

  .why-choose-section .why-choose-arabic .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .why-choose-section .why-choose-arabic .description {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .why-choose-section .img-wrap {
    margin-top: 2rem;
    max-height: 400px;
  }

  /* Services Section */
  .services-section {
    padding-bottom: 6rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .service-card-title {
    font-size: 1.4rem;
  }

  .service-description {
    font-size: 1.05rem;
  }

  /* Gallery Section */
  .gallery-section {
    padding-bottom: 8rem;
  }

  .gallery-container {
    padding: 0 40px;
  }

  .gallery-card {
    flex: 0 0 300px;
  }

  .card-image {
    height: 220px;
  }

  .gallery-nav {
    display: none !important;
  }

  /* Footer */
  .footer-section {
    padding: 60px 0;
  }

  .footer-section .sofa-img {
    position: relative;
    top: -81px;
    right: auto;
    margin: 30px auto -50px;
    animation: floatSofa 4s ease-in-out infinite;
    z-index: 2;
  }

  .footer-section .sofa-img img {
    max-width: 250px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  }
  .footer-section {
    margin-top: -40px;
  }

  .footer-section .row.g-5.mb-5 {
    margin-top: -140px;
  }

  .footer-section .footer-logo {
    font-size: 2rem;
  }

  .footer-section .links-wrap ul {
    justify-content: center !important;
    gap: 2rem !important;
  }
}

/* Small Tablets and Large Phones (576px - 767px) */
@media (max-width: 767px) {

  /* Navigation */
  .custom-navbar .navbar-brand {
    font-size: 28px;
  }

  .custom-navbar .navbar-collapse {
    background: rgba(74, 110, 56, 0.95);
    border-radius: 10px;
    margin-top: 15px;
    padding: 20px;
  }

  .custom-navbar .custom-navbar-nav li a {
    color: #ffffff !important;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 8px 0;
    text-align: center;
    display: block;
    font-size: 1.1rem;
  }

  .custom-navbar .custom-navbar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Hero Section */
  .hero {
    padding: 2rem 0 0 0;
    text-align: center;
    position: relative;
    overflow: visible;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }

  .hero .intro-excerpt {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
  }

  .hero .hero-img-wrap {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    margin-top: -1rem;
  }

  .hero .hero-img-wrap img {
    transform: translateY(30px);
    max-height: 400px;
    object-fit: contain;
  }

  /* Why Choose Section */
  .why-choose-section {
    padding: 2rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
  }

  .why-choose-section .why-choose-arabic {
    text-align: center;
    margin-bottom: 2rem;
  }

  .why-choose-section .why-choose-arabic .section-title {
    font-size: 2.2rem;
  }

  .why-choose-section .why-choose-arabic .description {
    font-size: 1.05rem;
    text-align: right;
  }

  .why-choose-section .img-wrap {
    margin-top: 1.5rem;
    max-height: 350px;
  }

  /* Services Section */
  .services-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 1.8rem 1.2rem;
  }

  .service-icon-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card-title {
    font-size: 1.3rem;
  }

  .service-description {
    font-size: 1rem;
  }

  .service-list li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  /* Gallery Section */
  .gallery-section .section-title {
    font-size: 2.2rem;
  }

  .gallery-container {
    padding: 0 30px;
  }

  .gallery-card {
    flex: 0 0 280px;
  }

  .card-image {
    height: 200px;
  }

  .card-content {
    padding: 1.5rem 1.2rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .gallery-nav {
    display: none !important;
  }

  /* Footer */
  .footer-section .row {
    text-align: center;
  }

  .footer-section .footer-description {
    margin-bottom: 2rem;
  }

  .footer-section .links-wrap {
    margin-top: 0;
  }

  .footer-section .links-wrap ul {
    flex-wrap: wrap;
    gap: 1.5rem !important;
  }

  .footer-section .custom-social {
    justify-content: center;
  }

  .footer-section .custom-social li {
    margin: 8px;
  }
}

/* Mobile Phones (480px - 575px) */
@media (max-width: 575px) {

  /* General */
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Navigation */
  .custom-navbar {
    padding: 12px 0;
  }

  .custom-navbar .navbar-brand {
    font-size: 24px;
  }

  .custom-navbar .navbar-collapse {
    padding: 15px;
  }

  .custom-navbar .custom-navbar-nav li a {
    padding: 12px 15px;
    font-size: 1rem;
  }

  /* Hero Section */
  .hero {
    padding: 1.5rem 0 0 0;
    position: relative;
    overflow: visible;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .hero .hero-img-wrap {
    margin-bottom: 0;
  }

  .hero .hero-img-wrap img {
    transform: translateY(40px);
    max-height: 350px;
  }

  /* Why Choose Section */
  .why-choose-section .why-choose-arabic .section-title {
    font-size: 1.9rem;
  }

  .why-choose-section .why-choose-arabic .description {
    font-size: 1rem;
  }

  .why-choose-section {
    margin-top: -3rem;
    padding-top: 3rem;
  }

  /* Services Section */
  .services-section .section-title {
    font-size: 1.9rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon-wrap {
    width: 70px;
    height: 70px;
  }

  .service-icon {
    font-size: 2.2rem;
  }

  .service-card-title {
    font-size: 1.2rem;
  }

  .service-description {
    font-size: 0.95rem;
  }

  .service-list li {
    font-size: 0.85rem;
    padding-right: 1.2rem;
  }

  .service-highlight-text {
    font-size: 1.1rem;
    padding: 1.5rem 0.8rem;
  }

  /* Gallery Section */
  .gallery-section .section-title {
    font-size: 1.9rem;
  }

  .gallery-container {
    padding: 0 25px;
  }

  .gallery-card {
    flex: 0 0 260px;
  }

  .card-image {
    height: 180px;
  }

  .card-content {
    padding: 1.2rem 1rem;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .gallery-nav {
    display: none !important;
  }

  /* Footer */
  .footer-section .sofa-img {
    top: -85px;
    margin: 0 auto -40px;
  }

  .footer-section {
    margin-top: -30px;
  }

  .footer-section .row.g-5.mb-5 {
    margin-top: -30px;
  }

  .footer-section .sofa-img img {
    max-width: 200px;
  }

  .footer-section .footer-logo {
    font-size: 1.8rem;
  }

  .footer-section .footer-description p {
    font-size: 0.95rem;
  }

  .footer-section .links-wrap ul li a {
    font-size: 0.9rem;
  }

  .footer-section .copyright p {
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile Phones (max-width: 479px) */
@media (max-width: 479px) {

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Navigation */
  .custom-navbar .navbar-brand {
    font-size: 22px;
  }

  /* Hero Section */
  .hero {
    padding: 1rem 0 0 0;
    position: relative;
    overflow: visible;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .hero .hero-img-wrap img {
    transform: translateY(50px);
    max-height: 320px;
  }

  /* Sections */
  .why-choose-section,
  .services-section {
    padding: 2.5rem 0;
  }

  .why-choose-section {
    margin-top: -0.5rem;
    padding-top: 4rem;
  }

  .why-choose-section .why-choose-arabic .section-title,
  .services-section .section-title,
  .gallery-section .section-title {
    font-size: 1.7rem;
  }

  .service-card {
    padding: 1.2rem 0.8rem;
  }

  .service-icon-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  .service-card-title {
    font-size: 1.1rem;
  }

  .service-description {
    font-size: 0.9rem;
  }

  .service-list li {
    font-size: 0.8rem;
    padding-right: 1rem;
  }

  /* Gallery Section */
  .gallery-container {
    padding: 0 20px;
  }

  .gallery-card {
    flex: 0 0 240px;
  }

  .card-image {
    height: 160px;
  }

  .gallery-nav {
    display: none !important;
  }

  /* Footer */
  .footer-section {
    padding: 40px 0;
    margin-top: -20px;
  }

  .footer-section .sofa-img {
    top: -85px;
    margin: 0 auto -70px;
  }

  .footer-section .row.g-5.mb-5 {
    margin-top: -25px;
  }

  .footer-section .sofa-img img {
    max-width: 180px;
  }

  .footer-section .custom-social li a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

/* Landscape Mode for Mobile Phones */
@media (max-height: 500px) and (orientation: landscape) {

  .hero {
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .why-choose-section,
  .services-section {
    padding: 2rem 0;
  }

  .service-card {
    padding: 1rem;
  }

  .gallery-section {
    padding-bottom: 3rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch devices */
  .service-card:hover {
    transform: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }

  .gallery-card:hover {
    transform: none;
    border-color: rgba(74, 110, 56, 0.1);
  }

  .gallery-card:hover .card-image img {
    transform: none;
    filter: brightness(1);
  }

  .service-card:hover .service-icon-wrap {
    transform: none;
    box-shadow: 0 8px 20px rgba(74, 110, 56, 0.15);
  }

  .service-card:hover .service-icon {
    transform: none;
  }

  /* Improve touch targets */
  .btn {
    min-height: 44px;
    padding: 14px 30px;
  }

  .gallery-nav {
    min-width: 44px;
    min-height: 44px;
  }

  .custom-navbar .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  .read-more-btn {
    min-height: 44px;
    padding: 12px 20px;
  }
}

/* High DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

  .service-icon-wrap,
  .gallery-nav,
  .custom-social li a {
    will-change: transform;
  }

  .card-image img,
  .hero-img-wrap img,
  .img-wrap img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {

  .custom-navbar,
  .gallery-nav,
  .read-more-btn,
  .custom-social {
    display: none;
  }

  .hero,
  .why-choose-section,
  .services-section,
  .gallery-section,
  .footer-section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .service-card {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }

  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* Navbar Logo Styles - Mobile First */
.navbar-logo {
  position: absolute;
  top: 83%;
  left: -5px;
  transform: translateY(-50%);
  height: 280px;
  z-index: 999;
  width: auto;
  object-fit: contain;
  transition: opacity 0.8s ease, filter 0.3s ease;
  filter: brightness(0) invert(1);
}

/* Override default animate-element behavior for navbar-logo */
.navbar-logo.animate-element {
  transform: translateY(-50%) !important;
  opacity: 0;
}

.navbar-logo.animate-element.animated {
  opacity: 1;
  transform: translateY(-50%) !important;
}

.navbar-logo:hover {
  filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

/* Tablet styles (iPad, iPad Mini, etc.) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-logo {
    top: 85%;
    left: 20px;
    height: 320px;
  }
  
  .navbar-logo.animate-element {
    transform: translateY(-50%) !important;
  }
  
  .navbar-logo.animate-element.animated {
    transform: translateY(-50%) !important;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .navbar-logo {
    top: 87%;
    left: 76px;
    height: 378px;
  }
  
  .navbar-logo.animate-element {
    transform: translateY(-50%) !important;
  }
  
  .navbar-logo.animate-element.animated {
    transform: translateY(-50%) !important;
  }
}

