/**
* Template Name: FlexStart
* Template URL: https://bootstrapmade.com/flexstart-bootstrap-startup-template/
* Updated: Nov 01 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --heading-font: "Almarai", "Nunito", sans-serif;
  --nav-font: "Almarai", "Poppins", sans-serif;
  --arabic-font: "Almarai", "Cairo", sans-serif;
  --default-font: "Almarai", Helvetica, Arial, Lucida, sans-serif;
}

/* Font display swap to prevent FOIT (Flash of Invisible Text) */
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/almarai/v12/tsstApxBaigK_hnnQ1iFow.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #8c4f2b; /* Changed from #012970 to primary-dark */
  --accent-color: #a55e33; /* Changed from #4154f1 to primary-color */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --primary-color: #a55e33;
  --primary-dark: #8c4f2b;  
  --primary-light: #c99477;
  
  /* Color transitions for theme switching */
  --transition-duration: 0.3s;
  --transition-timing: ease;
}

/* Dark Mode Colors - These color variables are used when the dark mode is active */
:root.dark-mode {
  /* Dark theme background colors */
  --background-color: #121212; /* Deep dark background that's easier on eyes than pure black */
  --surface-color: #1e1e1e; /* Slightly lighter than background for cards, boxes etc */
  --elevated-surface-color: #2d2d2d; /* For elements that need to stand out above surface */
  
  /* Text colors for dark mode */
  --default-color: #e0e0e0; /* Light gray text that's not too harsh */
  --muted-color: #a0a0a0; /* Slightly dimmed text for secondary content */
  --heading-color: #d6a57c; /* Lightened version of primary dark for better contrast */
  --contrast-color: #ffffff; /* White text for high contrast areas */
  
  /* Brand colors adapted for dark mode */
  --primary-color: #c97645; /* Brightened primary for better visibility on dark */
  --primary-dark: #b86b3d; /* Adjusted primary dark */
  --primary-light: #e0b092; /* Lightened primary light */
  --accent-color: #c97645; /* Brightened accent color */
  
  /* Nav colors for dark mode */
  --nav-color: #a55e33;
  --nav-hover-color: #b84d34;
  --nav-mobile-background-color: #1e1e1e;
  --nav-dropdown-background-color: #2d2d2d;
  --nav-dropdown-color: #e0e0e0;
  --nav-dropdown-hover-color: #c97645;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #8c4f2b;  /* Changed from #012970 to primary-dark */
  --nav-hover-color: #a55e33; /* Changed from #4154f1 to primary-color */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #a55e33; /* Changed from #4154f1 to primary-color */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the same color scheme. */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Dark Mode specific preset overrides */
.dark-mode .light-background {
  --background-color: #181818;
  --surface-color: #2d2d2d;
}

.dark-mode .dark-background {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1a1a1a;
  --contrast-color: #ffffff;
}

/* Theme transition - Apply to elements that need smooth color transition */
.theme-transition {
  transition: background-color var(--transition-duration) var(--transition-timing),
              color var(--transition-duration) var(--transition-timing),
              border-color var(--transition-duration) var(--transition-timing),
              box-shadow var(--transition-duration) var(--transition-timing);
}

/* Apply transition to common elements */
body, header, footer, section, .section, 
.card, .service-item, .portfolio-content, .team-member,
.blog-posts article, .contact .info-item, .php-email-form,
input, textarea, button, a, .btn-getstarted, .navmenu {
  transition: background-color var(--transition-duration) var(--transition-timing),
              color var(--transition-duration) var(--transition-timing),
              border-color var(--transition-duration) var (--transition-timing),
              box-shadow var(--transition-duration) var(--transition-timing);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
  :root.auto-theme {
    /* Apply dark mode variables when system prefers dark theme */
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --elevated-surface-color: #2d2d2d;
    --default-color: #e0e0e0;
    --muted-color: #a0a0a0;
    --heading-color: #d6a57c;
    --contrast-color: #ffffff;
    --primary-color: #c97645;
    --primary-dark: #b86b3d;
    --primary-light: #e0b092;
    --accent-color: #c97645;
    --nav-color: #d6a57c;
    --nav-hover-color: #c97645;
    --nav-mobile-background-color: #1e1e1e;
    --nav-dropdown-background-color: #2d2d2d;
    --nav-dropdown-color: #e0e0e0;
    --nav-dropdown-hover-color: #c97645;
  }
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

/* Add Arabic font family to specific elements */
body.rtl, 
h1, h2, h3, h4, h5, h6,
.navmenu,
.btn-getstarted,
.hero p,
.hero h1,
.hero ul,
.section-title {
  font-family: var(--arabic-font), var(--default-font);
}

a {
  color: var (--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Hero-specific styling */
.hero h1 span, .hero p span {
  color: var(--accent-color);
  font-weight: bold;
}

.hero ul {
  list-style: none;
  padding-right: 20px;
  margin-bottom: 20px;
}

.hero ul li {
  position: relative;
  padding-right: 25px;
  margin-bottom: 10px;
}

.hero ul li:before {
  content: "\f00c";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--accent-color);
}

/* Service item additional stylings */
.service-item.item-primary {
  border-bottom: 3px solid var(--primary-color);
}
.service-item.item-primary .icon {
  color: var(--primary-color);
  background: rgba(165, 94, 51, 0.1);
}
.service-item.item-primary .read-more {
  color: var(--primary-color);
}
.service-item.item-primary:hover {
  background: var(--primary-color);
}

.service-item.item-secondary {
  border-bottom: 3px solid #6c757d;
}
.service-item.item-secondary .icon {
  color: #6c757d;
  background: rgba(108, 117, 125, 0.1);
}
.service-item.item-secondary .read-more {
  color: #6c757d;
}
.service-item.item-secondary:hover {
  background: #6c757d;
}

.service-item.item-tertiary {
  border-bottom: 3px solid #20c997;
}
.service-item.item-tertiary .icon {
  color: #20c997;
  background: rgba(32, 201, 151, 0.1);
}
.service-item.item-tertiary .read-more {
  color: #20c997;
}
.service-item.item-tertiary:hover {
  background: #20c997;
}

.service-item.item-accent {
  border-bottom: 3px solid #fd7e14;
}
.service-item.item-accent .icon {
  color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
}
.service-item.item-accent .read-more {
  color: #fd7e14;
}
.service-item.item-accent:hover {
  background: #fd7e14;
}

.service-item.item-light {
  border-bottom: 3px solid #0dcaf0;
}
.service-item.item-light .icon {
  color: #0dcaf0;
  background: rgba(13, 202, 240, 0.1);
}
.service-item.item-light .read-more {
  color: #0dcaf0;
}
.service-item.item-light:hover {
  background: #0dcaf0;
}

.service-item.item-dark {
  border-bottom: 3px solid #212529;
}
.service-item.item-dark .icon {
  color: #212529;
  background: rgba(33, 37, 41, 0.1);
}
.service-item.item-dark .read-more {
  color: #212529;
}
.service-item.item-dark:hover {
  background: #212529;
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  background-color: var(--background-color);
  z-index: 997;
  transition: all 0.5s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container-fluid {
  padding: 0 15px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* Fixed height header */
}

/* Logo styling */
.header .logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px 0;
  flex-basis: 25%;
}

.header .logo img {
  max-height: 18rem; /* Controlled logo height */
  width: auto;
}

/* Navigation and button container */
.header .nav-button-container {
  display: flex;
  align-items: center;
  height: 100%;
  flex-basis: 75%;
  justify-content: flex-end;
}

/* Navigation styling */
.header .navmenu {
  margin-right: 30px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.header .navmenu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

/* Button styling */
.header .btn-getstarted {
  color: var(--contrast-color);
  background: var(--accent-color);
  padding: 8px 20px;
  border-radius: 4px;
  transition: 0.3s;
  font-weight: 500;
}

.header .btn-getstarted:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}



.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Index Page Header
------------------------------*/
.index-page .header {
  --background-color: rgba(255, 255, 255, 0);
}

/* Index Page Header on Scroll
------------------------------*/
.index-page.scrolled .header {
  --background-color: #8c4f2b;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 12px;
    font-size: 18px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  /* .navmenu li:last-child a {
    padding-right: 0;
  } */

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: #a55f3360;
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/* Listing Dropdown - Desktop */
@media (min-width: 1200px) {
  .navmenu .listing-dropdown {
    position: static;
  }

  .navmenu .listing-dropdown ul {
    margin: 0;
    padding: 10px;
    background: var(--nav-dropdown-background-color);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 130%;
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    display: flex;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
  }

  .navmenu .listing-dropdown ul li {
    flex: 1;
  }

  .navmenu .listing-dropdown ul li a,
  .navmenu .listing-dropdown ul li:hover>a {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--nav-dropdown-color);
    background-color: var(--nav-dropdown-background-color);
  }

  .navmenu .listing-dropdown ul li a:hover,
  .navmenu .listing-dropdown ul li .active,
  .navmenu .listing-dropdown ul li .active:hover {
    color: var(--nav-dropdown-hover-color);
    background-color: var(--nav-dropdown-background-color);
  }

  .navmenu .listing-dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* Listing Dropdown - Mobile */
@media (max-width: 1199px) {
  .navmenu .listing-dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .listing-dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .listing-dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  font-size: 16px;
  color: var(--accent-color);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  margin-right: 3px;
  font-size: 12px;
  line-height: 0;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-about a {
  color: var(--heading-color);
  font-size: 24px;
  font-weight: 600;
  font-family: var(--heading-font);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 80px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
  position: relative;
  z-index: 2;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* Progress circle */
.progress-circle {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
  z-index: 1;
}

.progress-circle path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

/* Lazy Loading Image Styles */
img.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy-load.loaded {
  opacity: 1;
}

/* Adjust WhatsApp button position to prevent overlap with scroll button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 80px;
  z-index: 9999;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 98px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 56px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;

  color: var(--accent-color);
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
  font-family: var(--default-font);
}

.section-title p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.section-title p .description-title {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 100px 0 60px 0; /* Adjusted padding to account for fixed header height */
  display: flex;
  align-items: center;
  background: url(../img/hero-bg.png) top center no-repeat;
  background-size: cover;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 5px 0 30px 0;
  font-size: 20px;
  font-weight: 400;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border-radius: 4px;
  transition: 0.5s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hero .btn-get-started i {
  margin-left: 5px;
  font-size: 18px;
  transition: 0.3s;
}

.hero .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hero .btn-get-started:hover i {
  transform: translateX(5px);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: var(--accent-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Dynamic Text Animation Styling */
.hero h2 {
  color: var(--default-color); /* This sets the static part to default-color */
}

#dynamic-text {
  color: var(--accent-color);
  font-weight: bold;
  position: relative;
  display: inline-block;
  min-width: 120px; /* Adjust based on your longest word */
}

#dynamic-text::after {
  content: '|';
  position: absolute;
  right: -10px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  padding: 40px;
}

.about .content h3 {
  font-weight: bold;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
}

.about .content h2 {
  font-size: 24px;
  font-weight: 700;
}

.about .content p {
  margin: 15px 0 30px 0;
  line-height: 24px;
}

.about .content .btn-read-more {
  color: var(--contrast-color);
  background: var(--accent-color);
  line-height: 0;
  padding: 15px 40px;
  border-radius: 4px;
  transition: 0.5s;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1);
}

.about .content .btn-read-more span {
  font-family: var(--default-font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
}

.about .content .btn-read-more i {
  margin-left: 5px;
  font-size: 18px;
  transition: 0.3s;
}

.about .content .btn-read-more:hover i {
  transform: translateX(5px);
}

/* Alt Features Section CSS is removed */

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 60px 30px;
  text-align: center;
  transition: all 0.4s ease;
  border-radius: 5px;
  border-bottom: 3px solid var(--accent-color); /* Consistent border color */
}

.services .service-item .icon {
  font-size: 36px;
  width: 80px;
  height: 80px;
  padding: 0;
  border-radius: 50%; /* Changed from 4px to 50% for circle shape */
  position: relative;
  margin: 0 auto 25px auto; /* Changed margin to center horizontally */
  display: inline-flex; /* Changed from flex to inline-flex */
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.4s ease;
  color: var(--accent-color);
  background: rgba(165, 94, 51, 0.1);
}

.services .service-item h3 {
  font-size: 24px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.services .service-item:hover {
  background: var(--accent-color); /* All cards use accent-color on hover */
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.services .service-item:hover h3,
.services .service-item:hover p {
  color: var(--contrast-color);
}

.services .service-item:hover .icon {
  background: #fff;
  color: var(--accent-color);
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Remove item-specific colors */
.services .service-item.item-cyan:hover,
.services .service-item.item-orange:hover,
.services .service-item.item-teal:hover,
.services .service-item.item-red:hover,
.services .service-item.item-indigo:hover,
.services .service-item.item-pink:hover {
  background: var(--accent-color);
}

/* Custom hover effects for service items */
.service-item {
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 1;
  border: 1px solid transparent;
}

.service-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--accent-color-light);
  opacity: 0.1;
  transition: height 0.4s ease;
  z-index: -1;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.service-item:hover::before {
  height: 100%;
}

.service-item:hover .icon {
  color: var(--accent-color);
  transform: scale(1.1);
}

.service-item:hover h3 {
  color: var(--accent-color);
}

/* Icon transition */
.service-item .icon {
  transition: all 0.4s ease;
}
/* Pricing Section CSS is removed */

/* Faq Section CSS is removed */

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 0 35px 0;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  margin: 5px 8px;
  border-radius: 20px;
  color: var(--default-color);
  background-color: rgba(245, 245, 245, 0.8); /* Light gray background */
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.portfolio .portfolio-filters li:hover {
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  border-color: rgba(var(--accent-rgb), 0.2);
}

/* Active tab styling to match the image */
.portfolio .portfolio-filters li.filter-active {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* Remove all previous ::before pseudo-elements */
.portfolio .portfolio-filters li::before {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    padding: 8px 14px;
    margin: 3px 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 280px; /* Fixed height for all portfolio items */
  margin-bottom: 20px;
  background-color: #f5f5f5;
}

.portfolio .portfolio-content img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is crucial to maintain aspect ratio while filling container */
  object-position: center;
  transition: transform 0.5s ease;
}

/* For portrait-oriented images */
.portfolio .portfolio-content.portrait-image img {
  object-position: top center;
}

.portfolio .portfolio-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 20px;
  text-align: center;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/* Show More Button Styles */
.show-more-button {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.btn-show-more {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  direction: rtl;
}

.btn-show-more.showing-all {
  background-color: rgba(0, 0, 0, 0.6);
}

.btn-show-more:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-show-more.showing-all:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (min-width: 769px) {
  /* Hide show-more button on desktop */
  .show-more-button {
    display: none !important;
  }
}

/* Preview link styling */
.portfolio .glightbox.preview-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin-top: 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.portfolio .glightbox.preview-link:hover {
  background: var(--accent-color);
}

.portfolio .glightbox.preview-link i {
  font-size: 24px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .portfolio .portfolio-content {
    height: 260px;
  }
}

@media (max-width: 767px) {
  .portfolio .portfolio-content {
    height: 240px;
  }
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  border-radius: 5px;
  transition: 0.3s;
}

.team .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.team .team-member .member-img:after {
  position: absolute;
  content: "";
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 100%;
  background-color: var(--surface-color);
  -webkit-mask: url("../img/team-shape.svg") no-repeat center bottom;
  mask: url("../img/team-shape.svg") no-repeat center bottom;
  -webkit-mask-size: contain;
  mask-size: contain;
  z-index: 1;
}

.team .team-member .social {
  position: absolute;
  right: -100%;
  top: 30px;
  opacity: 0;
  border-radius: 4px;
  transition: 0.5s;
  background: color-mix(in srgb, var(--background-color), transparent 60%);
  z-index: 2;
}

.team .team-member .social a {
  transition: color 0.3s;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 15px 12px;
  display: block;
  line-height: 0;
  text-align: center;
}

.team .team-member .social a:hover {
  color: var(--default-color);
}

.team .team-member .social i {
  font-size: 18px;
}

.team .team-member .member-info {
  padding: 10px 15px 20px 15px;
}

.team .team-member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

.team .team-member .member-info span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.team .team-member .member-info p {
  font-style: italic;
  font-size: 14px;
  padding-top: 15px;
  line-height: 26px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.team .team-member:hover {
  transform: scale(1.08);
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.team .team-member:hover .social {
  right: 8px;
  opacity: 1;
}

/* Testimonials Section CSS is removed */

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .swiper-slide img {
  transition: 0.3s;
  opacity: 0.5;
}

.clients .swiper-slide img:hover {
  opacity: 1;
}

.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: color-mix(in srgb, var (--default-color), transparent 80%);
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  background: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 30px;
}

.contact .info-item i {
  font-size: 38px;
  line-height: 0;
  color: var(--accent-color);
}

.contact .info-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-item p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form {
  background: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 30px;
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/* Dark mode specific component overrides */
.dark-mode .service-item,
.dark-mode .portfolio-content,
.dark-mode .team-member,
.dark-mode .blog-posts article,
.dark-mode .contact .info-item,
.dark-mode .contact .php-email-form,
.dark-mode .blog-details .article,
.dark-mode .footer-about a {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.dark-mode .header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.dark-mode .hero {
  /* Use existing hero background with a dark overlay */
  background: var(--background-color);
  background-size: cover;
}

/* Dark mode form overrides */

/* Dark mode form overrides */
.dark-mode .contact .php-email-form input[type=text],
.dark-mode .contact .php-email-form input[type=email],
.dark-mode .contact .php-email-form textarea {
  background-color: #2d2d2d;
  border-color: #444444;
  color: var(--default-color);
}

.dark-mode .contact .php-email-form input[type=text]:focus,
.dark-mode .contact .php-email-form input[type=email]:focus,
.dark-mode .contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

/* Dark mode for images with light backgrounds */
.dark-mode img.invert-in-dark {
  filter: brightness(0.9) contrast(1.1);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/

.service-details .download-catalog a:last-child {
  padding-bottom: 0;
}

.service-details .download-catalog a i {
  font-size: 24px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .download-catalog a:hover {
  color: var(--accent-color);
}

.service-details .help-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  margin-top: 30px;
  padding: 30px 15px;
}

.service-details .help-box .help-icon {
  font-size: 48px;
}

.service-details .help-box h4,
.service-details .help-box a {
  color: var(--contrast-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
}

.blog-posts .post-img {
  max-height: 440px;
  margin: -30px -30px 0 -30px;
  overflow: hidden;
}

.blog-posts .title {
  font-size: 24px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.blog-posts .title a:hover {
  color: var(--accent-color);
}

.blog-posts .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-posts .meta-top ul li+li {
  padding-left: 20px;
}

.blog-posts .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-posts .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-posts .content {
  margin-top: 20px;
}

.blog-posts .content .read-more {
  text-align: right;
}

.blog-posts .content .read-more a {
  background: var(--accent-color);
  color: var(--contrast-color);
  display: inline-block;
  padding: 8px 30px;
  transition: 0.3s;
  font-size: 14px;
  border-radius: 4px;
}

.blog-posts .content .read-more a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Author Section
--------------------------------------------------------------*/
.blog-author {
  padding: 10px 0 40px 0;
}

.blog-author .author-container {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-author img {
  max-width: 120px;
  margin-right: 20px;
}

.blog-author h4 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 0px;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author .social-links {
  margin: 0 10px 10px 0;
}

.blog-author .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-right: 5px;
}

.blog-author p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var (--default-color);
  border: 1px solid color-mix(in srgb, var (--default-font-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  background-color: var(--surface-color);
  padding: 30px;
  margin: 60px 0 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 3px 10px;
  position: relative;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  padding-bottom: 10px;
}

.categories-widget ul li:last-child {
  padding-bottom: 0;
}

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover {
  color: var(--accent-color);
}

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.tags-widget {
  margin-bottom: -10px;
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid color-mix(in srgb, var (--default-color), transparent 60%);
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 1px solid var (--accent-color);
}
;
.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Theme Toggle Switch
--------------------------------------------------------------*/
.theme-toggle-wrapper {
  margin-left: 20px;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin: 0;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f0f0f0;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}

.light-icon,
.dark-icon {
  font-size: 15px;
  line-height: 30px;
  z-index: 1;
}

.light-icon {
  margin-left: 5px;
  color: #f39c12;
}

.dark-icon {
  margin-right: 5px;
  color: #6c5ce7;
}

input:checked + .slider {
  background-color: #2c3e50;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Dark mode for navbar on index page */
.index-page .header {
  --background-color: rgba(255, 255, 255, 0);
  --nav-color: #8c4f2b;
}

/* Index Page Header on Scroll - light mode */
.index-page.scrolled .header {
  --background-color: var(--surface-color);
  --nav-color: #8c4f2b;
}

/* Mobile responsive design for theme toggle */
@media (max-width: 1199px) {
  .theme-toggle-wrapper {
    margin-right: auto;
    margin-left: 10px;
  }
  
  .theme-switch {
    width: 50px;
    height: 26px;
  }
  
  .slider:before {
    height: 20px;
    width: 20px;
  }
  
  input:checked + .slider:before {
    transform: translateX(24px);
  }
}

/* Theme transition tweaks */
.dark-mode .slider {
  background-color: #2c3e50;
}

.dark-mode .light-icon {
  color: #f1c40f;
}

.dark-mode .dark-icon {
  color: #9b59b6;
}

/* WhatsApp Button Styles */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Increased from 20px to 80px to move it away from scroll button */
  z-index: 9999;
}

.whatsapp-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  outline: none;
}

.whatsapp-btn a:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-btn i {
  font-size: 24px;
}
/* Add pulse animation for the WhatsApp button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-btn a {
  animation: pulse 2s infinite;
}
/* Responsive adjustments for mobile */
@media screen and (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }

}

/* Apply Almarai font to all important text elements */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, button, input, textarea, select, label {
  font-family: var(--default-font);
}

/* Use specific font weights for different elements */
h1, h2, h3, .navbar .navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
}

/* Navigation menu */
.navmenu ul a {
  font-family: var(--nav-font);
  font-weight: 400;
}

/* Buttons and call-to-actions */
.btn-get-started, .btn-read-more, button[type="submit"] {
  font-family: var(--default-font);
  font-weight: 700;
}

/* RTL specific adjustments for Almarai */
[dir="rtl"] {
  font-family: var(--default-font);
  letter-spacing: 0;
}

/* Fix spacing issues in RTL text */
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] p {
  letter-spacing: 0;
  word-spacing: 1px;
}

/* Statistics Section Styles */
.stats {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.stats .stat-item {
  background: var(--surface-color);
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats .stat-icon {
  font-size: 42px;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: inline-block;
}

.stats .stat-counter {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  font-family: var(--heading-font);
  line-height: 1;
  margin-bottom: 10px;
}

.stats .stat-counter span {
  display: inline-block;
  color: #333;
}

.stats .stat-item h3 {
  font-size: 20px;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--default-color);
}

/* Responsive styles */
@media (max-width: 992px) {
  .stats .stat-counter {
    font-size: 36px;
  }
  
  .stats .stat-icon {
    font-size: 36px;
  }
}

/* Statistics counter with different colored "+" sign */
.stats .stat-counter {
  font-size: 48px;
  font-weight: 700;
  color: #333; /* Keep the number color dark gray */
  font-family: var(--heading-font);
  line-height: 1;
  margin-bottom: 10px;
}

/* Special styling for the "+" sign */
.stats .stat-counter span:last-child {
  color: var(--heading-color); /* Apply heading color (#8c4f2b) to the "+" sign */
  display: inline-block;
  font-weight: 700;
  margin-left: 2px; /* Add a little spacing between number and plus sign */
}

/* Keep the number span consistent */
.stats .stat-counter .purecounter {
  color: #333; /* Explicitly set the number color */
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {
  padding: 80px 0;
  background-color: var(--section-bg);
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px;
  margin: 20px 15px;
  box-shadow: 0px 0 20px rgba(var(--default-rgb), 0.1);
  background: var(--white-color);
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: var(--default-color);
  margin: 0;
  font-style: italic;
}

.testimonials .testimonial-item .stars {
  color: #ffb100;
  margin: 5px 0;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0;
  line-height: 1.7;
  color: var(--default-color);
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(var(--accent-rgb), 0.2);
  font-size: 22px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  margin-right: 5px;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  margin-left: 5px;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: rgba(var(--default-rgb), 0.15);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq {
  padding: 60px 0;
}

.faq .accordion-item {
  
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px 0px rgba(var(--default-rgb), 0.1);
  border-radius: 10px;
}

.faq .accordion-button {
  padding: 20px 25px;
  font-weight: 600;
  border: 0;
  font-size: 18px;
  line-height: 24px;
  color: var(--heading-color);
  text-align: right;
  background: var(--white-color);
  box-shadow: none;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.faq .accordion-button:not(.collapsed) {
  background-color: var(--white-color);
  color: var(--accent-color);
  box-shadow: none;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Fix for arrow position in RTL */
.faq .accordion-button:after {
  font-family: "bootstrap-icons";
  content: "\f282";
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 400;
  position: absolute;
  right: 25px; /* Position from the right side */
  left: auto; /* Remove left positioning */
  background-image: none;
}

.faq .accordion-button:not(.collapsed):after {
  content: "\f286";
  transform: rotate(0deg);
  right: 25px; /* Keep consistent positioning */
  left: auto;
}

/* Fix for button text alignment and padding to accommodate the arrow */
.faq .accordion-button {
  padding-right: 60px; /* Increase right padding to make room for arrow */
  text-align: right;
  justify-content: flex-start;
}

.faq .accordion-body {
  padding: 20px 25px;
  line-height: 1.8;
  color: var(--default-color);
  background: var(--white-color);
  border-radius: 0 0 10px 10px;
}

/* Add hover effect that matches your color scheme */
.faq .accordion-button:hover {
  color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.05);
}

.faq .accordion-item:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Enhanced Creative Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(140deg, #ffffff 0%, #f5f8fd 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.7s ease-in-out, visibility 0.7s;
  overflow: hidden;
}

body.dark-theme #preloader {
  background: linear-gradient(140deg, #121212 0%, #1e2024 100%);
}

#preloader:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--accent-color), #55cbdc, var(--accent-color));
  animation: border-flow 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes border-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#preloader .spinner {
  text-align: center;
  position: relative;
  width: 300px;
}

#preloader .preloader-logo {
  max-width: 180px;
  margin-bottom: 30px;
  transform-origin: center;
  animation: logo-entrance 1.5s ease-out forwards;
}

@keyframes logo-entrance {
  0% { opacity: 0; transform: scale(0.5) translateY(-20px); }
  60% { opacity: 1; transform: scale(1.1) translateY(5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.loading-text {
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 600;
  margin: 15px 0;
  direction: rtl;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
  opacity: 0;
  animation: fade-in 0.5s ease-in 0.5s forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-bar {
  width: 280px;
  height: 6px;
  background-color: rgba(var(--accent-rgb), 0.1);
  border-radius: 6px;
  margin: 25px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  opacity: 0;
  animation: fade-in 0.5s ease-in 0.7s forwards;
}

.loading-bar .bar {
  position: absolute;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-color), #55cbdc);
  background-size: 200% 100%;
  width: 0; /* Starts at 0% */
  transition: width 0.1s ease; /* Smoother animation */
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes loading {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 100%; }
}

.dots {
  display: inline-block;
  width: 20px;
  text-align: left;
  animation: dots-bounce 1.2s infinite;
}

@keyframes dots-bounce {
  0%, 20% { content: "."; transform: translateY(0); }
  40% { content: ".."; transform: translateY(-3px); }
  60% { content: "..."; transform: translateY(0); }
  80%, 100% { content: "."; transform: translateY(0); }
}

/* Tech Elements Animation */
.tech-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.tech-elements i {
  position: absolute;
  color: rgba(var(--accent-rgb), 0.15);
  font-size: 26px;
  animation: float-icons 8s infinite ease-in-out;
  opacity: 0;
}

.tech-elements i:nth-child(1) {
  top: 20%;
  left: 5%;
  animation-delay: 0.2s;
  font-size: 30px;
}

.tech-elements i:nth-child(2) {
  top: 15%;
  right: 10%;
  animation-delay: 1.5s;
  font-size: 25px;
}

.tech-elements i:nth-child(3) {
  bottom: 20%;
  left: 10%;
  animation-delay: 0.5s;
  font-size: 28px;
}

.tech-elements i:nth-child(4) {
  bottom: 15%;
  right: 5%;
  animation-delay: 1.7s;
  font-size: 32px;
}

.tech-elements i:nth-child(5) {
  bottom: 35%;
  left: 35%;
  animation-delay: 1.1s;
  font-size: 22px;
}

.tech-elements i:nth-child(6) {
  top: 40%;
  right: 30%;
  animation-delay: 0.9s;
  font-size: 24px;
}

@keyframes float-icons {
  0% { 
    transform: translateY(0) rotate(0deg) scale(0.8); 
    opacity: 0; 
  }
  20% { 
    opacity: 0.6; 
  }
  50% { 
    transform: translateY(-20px) rotate(10deg) scale(1); 
    opacity: 0.2; 
  }
  80% { 
    opacity: 0.6; 
  }
  100% { 
    transform: translateY(0) rotate(0deg) scale(0.8); 
    opacity: 0; 
  }
}

/* Add a subtle pulsing light effect in the background */
#preloader:after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0) 70%);
  z-index: -1;
  animation: pulse-light 4s infinite ease-in-out;
}

@keyframes pulse-light {
  0% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(0.8); opacity: 0.3; }
}

/* Add a closing animation class */
#preloader.closing .preloader-logo {
  animation: logo-exit 0.5s ease-in forwards;
}

@keyframes logo-exit {
  0% { transform: scale(1) rotate(0); }
  100% { transform: scale(0.8) rotate(5deg); opacity: 0; }
}

#preloader.closing .loading-bar,
#preloader.closing .loading-text {
  animation: fade-out 0.3s ease-out forwards;
}

@keyframes fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/*--------------------------------------------------------------
# Trust Indicators
--------------------------------------------------------------*/
.trust-indicators {
  padding: 60px 0;
  background-color: var(--section-bg);
}

.trust-item {
  padding: 30px 20px;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(var(--default-rgb), 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 250px;
}

.trust-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.15);
}

.trust-icon {
  margin-bottom: 20px;
}

.trust-icon i {
  font-size: 40px;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.08);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.trust-item:hover .trust-icon i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.trust-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 0;
  color: var(--heading-color);
}

.trust-item p {
  margin: 0;
  font-size: 15px;
  color: var(--default-color);
}

/* Client Logos */
.client-logos {
  margin-top: 50px;
}

.client-logos h4 {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 30px;
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.logo-item {
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
}

.logo-placeholder {
  background: var(--white-color);
  border: 1px solid rgba(var(--default-rgb), 0.1);
  border-radius: 8px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.logo-placeholder:hover {
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.1);
}

/* Trust Badges */
.trust-badges {
  margin-top: 50px;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.badge-item {
  background: var(--white-color);
  border-radius: 50px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(var(--default-rgb), 0.1);
  transition: all 0.3s ease;
}



.badge-item i {
  font-size: 18px;
  color: var(--accent-color);
}



.badge-item span {
  font-weight: 600;
  font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trust-item {
    min-height: auto;
    margin-bottom: 30px;
  }
  
  .badge-item {
    padding: 8px 15px;
  }
  
  .badge-item i {
    font-size: 16px;
  }
  
  .badge-item span {
    font-size: 14px;
  }
}

/* Client Logos Slider */
.client-logos {
  padding: 20px 0;
}

.client-logos-slider {
  overflow: hidden;
  padding: 20px 0;
}

.client-logos .logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: var(--white-color);
  border-radius: 10px;
  height: 160px;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--default-rgb), 0.1);
}

.client-logos .logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--default-rgb), 0.1);
}

.client-logos .logo-item img {
  max-height: 120px;
  max-width: 180px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Grayscale Effect */
.client-logos .logo-item img.grayscale {
  filter: grayscale(100%) brightness(1.2) contrast(0.8);
  opacity: 0.7;
}

.client-logos .logo-item:hover img.grayscale {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
}

/* For placeholder logos */
.client-logos .logo-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 150px;
  background: var(--white-color);
  color: var(--default-color);
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(var(--default-rgb), 0.1);
  filter: grayscale(100%) brightness(1.2);
  transition: all 0.3s ease;
}

.client-logos .logo-item:hover .logo-placeholder {
  filter: grayscale(0%);
  color: var(--accent-color);
}


/* Statistics Section - Dark Mode Support */
/* Replace hardcoded colors with variables */
.stats {
  background-color: var(--background-color);
}

.stats .stat-item {
  background: var(--surface-color);
}

/* Change hardcoded #333 to use variables */
.stats .stat-counter {
  color: var(--heading-color);
}

.stats .stat-counter .purecounter {
  color: var(--default-color);
}

/* Fix the "+" sign color to match theme */
.stats .stat-counter span:last-child {
  color: var(--accent-color);
}

.stats .stat-icon {
  color: var(--accent-color);
}

/* Fix background for bg-light-subtle */
.bg-light-subtle {
  background-color: var(--background-color) !important;
}




/*--------------------------------------------------------------
# FAQ Section - Dark Mode Support
--------------------------------------------------------------*/
.faq {
  padding: 60px 0;
  background-color: var(--background-color);
}

.faq .accordion-item {
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: var(--surface-color);
  border-color: var(--surface-color);
}

.faq .accordion-button {
  padding: 20px 25px;
  font-weight: 600;
  border: 0;
  font-size: 18px;
  line-height: 24px;
  color: var(--heading-color);
  text-align: right;
  background: var(--surface-color);
  box-shadow: none;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.faq .accordion-button:not(.collapsed) {
  background-color: var(--surface-color);
  color: var(--accent-color);
  box-shadow: none;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Fix for arrow position in RTL */
.faq .accordion-button:after {
  font-family: "bootstrap-icons";
  content: "\f282";
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 400;
  position: absolute;
  right: 25px;
  left: auto;
  background-image: none;
}

.faq .accordion-button:not(.collapsed):after {
  content: "\f286";
  transform: rotate(0deg);
  right: 25px;
  left: auto;
}

/* Fix for button text alignment and padding */
.faq .accordion-button {
  padding-right: 60px;
  text-align: right;
  justify-content: flex-start;
}

.faq .accordion-body {
  padding: 20px 25px;
  line-height: 1.8;
  color: var(--default-color);
  background: var(--surface-color);
  border-radius: 0 0 10px 10px;
}

/* Add hover effect that matches your color scheme */
.faq .accordion-button:hover {
  color: var(--accent-color);
  background-color: var(--elevated-surface-color);
}

.faq .accordion-item:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

















/* Mobile Touch Target Enhancement */
@media (max-width: 991px) {
  /* Increase button sizes on mobile */
  .btn-get-started, 
  .btn-read-more, 
  .btn-watch-video,
  button[type="submit"],
  .portfolio .glightbox.preview-link {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve navigation touch targets */
  .navmenu a {
    padding: 15px 20px;
    margin: 5px 0;
  }
  
  /* Larger click area for accordion buttons */
  .faq .accordion-button {
    min-height: 54px;
  }
  
  /* More tappable footer links */
  .footer .footer-links ul li {
    padding: 12px 0;
  }
  
  /* Increase stats icons */
  .stats .stat-icon {
    font-size: 46px;
    padding: 10px;
  }
}


/*--------------------------------------------------------------
/* Enhanced Mobile Navigation */
@media (max-width: 1199px) {
  /* Smoother navigation animation */
  .header .navmenu {
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
    padding-top: 60px; /* Add space at the top */
  }
  
  /* Enhance backdrop for better visibility */
  .mobile-nav-active .navmenu {
    background: rgba(var(--accent-rgb), 0.3);
    backdrop-filter: blur(4px);
  }
  
  /* Better spacing for nested nav items */
  .navmenu .dropdown ul li {
    padding: 10px 0;
  }
  
  /* Improve visibility of active items */
  .navmenu .active {
    font-weight: 700;
    position: relative;
  }
  
  .navmenu .active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--accent-color);
    border-radius: 4px 0 0 4px;
  }
}



/* Service Items Mobile Spacing */
@media (max-width: 767px) {
  .services .service-item {
    margin-bottom: 30px;
    padding: 40px 20px;
  }
  
  /* Reduce section padding on mobile */
  section, .section {
    padding: 40px 0;
  }
  
  /* Adjust section titles for mobile */
  .section-title {
    padding-bottom: 30px;
  }
  
  .section-title p {
    font-size: 26px;
  }
  
  /* Add more whitespace around elements for better readability */
  p, .testimonial-item p, .faq .accordion-body {
    line-height: 1.6;
    margin-bottom: 15px;
  }
}



/* Mobile Image & Layout Optimization */
@media (max-width: 767px) {
  /* Optimize hero section for mobile */
  .hero {
    min-height: auto;
    padding: 120px 0 40px 0;
  }
  
  /* Ensure images don't overflow their containers */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix potential overflow issues */
  
  
  /* Better spacing for statistics on mobile */
  .stats .stat-item {
    margin-bottom: 20px;
    padding: 30px 15px;
  }
  
  /* Adjust WhatsApp and scroll buttons for better mobile positioning */
  
  
  .whatsapp-btn {
    bottom: 15px;
    right: 15px;
  }
  
  /* Fix potential overlapping */
  .scroll-top, .whatsapp-btn {
    z-index: 996; /* Ensure they stack properly */
  }
}


/* Hero section button improvements - Mobile optimized */
@media (max-width: 767px) {
  .hero .d-flex {
    flex-direction: column;
    width: 100%;
  }
  
  .hero .btn-get-started, 
  .hero .btn-watch-video {
    width: 100%;
    min-height: 50px;
    border-radius: 6px;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .hero .btn-get-started {
    padding: 12px 20px;
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.2);
  }
  
  .hero .btn-get-started:active {
    transform: scale(0.98);
  }
}

/* Button animation for all devices */
.hero .btn-get-started {
  position: relative;
  overflow: hidden;
}

.hero .btn-get-started:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.hero .btn-get-started:hover:before {
  left: 100%;
}


/* Find this section around line 622 and replace it */
@media (max-width: 1199px) {
  .header-inner {
    height: 70px; /* Slightly smaller on mobile */
  }
  
  .header .logo {
    flex-basis: auto;
  }
  
  .header .logo img {
    max-height: 16rem; /* Smaller logo on mobile */
  }
  
  .header .mobile-nav-toggle {
    display: block;
    color: var(--nav-color);
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    margin-left: 20px;
  }
  
  .header .navmenu {
    position: fixed;
    top: 70px;
    right: -100%;
    bottom: 0;
    width: 280px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    padding: 20px 0; /* Use consistent padding */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    justify-content: flex-start;
    margin-right: 0;
    max-height: calc(100vh - 70px); /* This is the key property */
  }
  
  .header .navmenu ul {
    justify-content: flex-start;
  }
  
  .mobile-nav-active .navmenu {
    right: 0;
    padding-top: 20px; /* Not 60px that was causing the scroll */
  }
  
  .header .navmenu ul {
    flex-direction: column;
  }
  
  .header .navmenu a {
    padding: 15px 20px;
    font-size: 18px;
  }
  
  .header .nav-button-container {
    justify-content: flex-end;
    flex-basis: auto;
  }
  
  .header .btn-getstarted {
    padding: 6px 15px;
    font-size: 14px;
    margin-right: 10px;
  }
}

/* Mobile Portfolio Optimization */
@media (max-width: 768px) {
  /* Mobile portfolio styling */
  .portfolio .isotope-item {
    transition: opacity 0.3s ease;
  }
}

