:root {
  --primary: #16337d;
  --secondary: #5075aa;
  --accent: #ffcc00;
  --dark: #0f2358;
  --light: #f8f9fa;
  --white: #fff;
  --gray: #666;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Cairo", sans-serif;
  direction: rtl;
  line-height: 1.7;
  color: #333;
}
img {
  image-rendering: auto;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: 0.5s;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader {
  /* width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite; */

  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 50%;
}
.loader img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
}

.loader::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 3px solid transparent;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* HEADER */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: 0.3s;
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 150px;
}
#header.scrolled .logo img {
  height: 90px;
}
.nav-menu {
  display: flex;
  gap: 0.5rem;
}
.nav-menu a {
  color: var(--primary);
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
  position: relative;
}
#header.scrolled .nav-menu a {
  color: var(--primary);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: 0.3s;
  border-radius: 2px;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 50%;
}
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 10px;
}
.menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}
#header.scrolled .menu-btn span {
  background: var(--primary);
}
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* HERO */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}
.slides-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(255, 255, 255, 0.85); */
}
.slide-bg::after {
  display: none;
}
#slide1 .slide-bg {
  background-image: url("./uploads/Dowalia\ backgrounds\ white-1.jpg");
}
#slide2 .slide-bg {
  background-image: url("./uploads/Dowalia\ backgrounds\ white\ \(2\).jpg");
}
#slide3 .slide-bg {
  background-image: url("./uploads/Dowalia\ backgrounds\ white\ \(3\).jpg");
}
.hero-content {
  text-align: center;
  color: var(--primary);
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
}
.hero-logo {
  max-width: 250px;
  margin: 0 auto 0;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.hero-title {
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 900;
  /* margin-bottom: 1rem; */
  color: var(--primary);
  text-shadow: #ffcc00 1px 1px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  /* color: var(--gray); */
  color: black;
  margin-bottom: 1rem;
}
.hero-branches {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.branch-item {
  width: 150px;
  height: 90px;
  /* background: var(--white); */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 15px; */
  transition: 0.3s;
  /* border: 1px solid #e0e0e0; */
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); */
}
.branch-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}
.branch-item img {
  /* max-height: 100%; */
  object-fit: contain;
}
.branch-item i {
  color: var(--primary);
}

/* SLIDER NAV */
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 10;
}
.slider-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.slider-btn:hover {
  background: var(--accent);
  color: var(--primary);
}
.slider-dots {
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  cursor: pointer;
  transition: 0.3s;
}
.dot:hover {
  opacity: 0.7;
}
.dot.active {
  background: var(--accent);
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

/* SLIDES - styles moved to above */

/* SECTION STYLES */
section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary);
  font-weight: 800;
  /* text-shadow: #ffcc00 1px 2px; */
}
.section-header.light .section-badge {
  background: var(--accent);
  color: var(--primary);
}
.section-header.light .section-title {
  color: var(--white);
}

/* ABOUT */
#about {
  background: var(--light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-right: 4px solid var(--primary);
  transition: 0.3s;
}
.about-card:hover {
  transform: translateX(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.about-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.about-card h3 i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card p {
  color: var(--gray);
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4.8rem;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-label {
  color: var(--gray);
}
.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(22, 51, 125, 0.2);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.5s;
}
.about-image:hover img {
  transform: scale(1.05);
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}
.about-image-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* PARTNERS */
#partners {
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  position: relative;
  background-image: url("./uploads/Call\ to\ Action\ -01.png");
  background-size: cover;
}
.partners-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.partner-card {
  width: 320px;
  min-height: 400px;
  perspective: 1000px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 400px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.partner-card:hover .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-front {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.card-back {
  background: var(--white);
  transform: rotateY(180deg);
  color: var(--primary);
  justify-content: center;
}
.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.card-badge.sub {
  background: var(--secondary);
  color: var(--white);
}
.card-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 1rem;
  background-color: whitesmoke;
  border-radius: 25px;
}
.card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.card-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.card-back h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.card-back ul {
  text-align: right;
  width: 100%;
  margin-bottom: 1.5rem;
}
.card-back li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-back li i {
  color: var(--accent);
}
.card-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}
.card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.connection-line {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.connection-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.other-partners {
  text-align: center;
}
.other-partners h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.partners-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.partner-mini {
  /* background: rgba(255, 255, 255, 0.1); */
  background-color: whitesmoke;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
  min-width: 180px;
}
.partner-mini:hover {
  transform: translateY(-10px);
  /* background: rgba(255, 255, 255, 0.2); */
  background-color: #ffcc00;
}
.partner-mini img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 0.8rem;
}
.partner-mini span {
  /* color: var(--white); */
  color: var(--dark);
  font-weight: 900;
}
.partner-mini span:hover {
  color: #fff !important;
}
/* PROJECTS */
/* PROJECTS SECTION */
#projects {
  padding: 5rem 0;
  background: var(--light);
}

/* Filter Buttons */
.filter-btns {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}
.filter-btn:hover {
  transform: translateY(-3px);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}
.filter-btn.active i {
  color: var(--accent);
}

/* Sub-filter Buttons */
.sub-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  min-height: 40px;
}
.sub-filter-group {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.sub-filter-group.active {
  display: flex;
}
.sub-btn {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.sub-btn:hover,
.sub-btn.active {
  background: var(--secondary);
  color: var(--white);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.project-card.hidden {
  display: none;
}
.project-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-img i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
}
.project-cat {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: 0.3s;
}
.project-card:hover .project-cat {
  opacity: 1;
}
.project-info {
  padding: 1.5rem;
}
.project-info h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.project-btn {
  background: var(--light);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}
.project-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
       PROJECT MODAL WITH IMAGE GALLERY
       ============================================ */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
#modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  transform: scale(0.9);
  transition: 0.3s;
}
#modal.active .modal-box {
  transform: scale(1);
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 2rem;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.modal-close:hover {
  background: var(--accent);
  color: var(--primary);
}
.modal-cat {
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.modal-title {
  font-size: 1.8rem;
}
.modal-body {
  padding: 2rem;
}

/* Image Gallery Styles */
.modal-gallery {
  margin-bottom: 2rem;
}
.modal-gallery h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.modal-gallery h4::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

/* Main Gallery Image */
.gallery-main {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--light);
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.gallery-main img:hover {
  transform: scale(1.02);
}

/* Gallery Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}
.gallery-thumbs::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 3px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}
.thumb-item {
  width: 80px;
  height: 60px;
  min-width: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: 0.3s;
  opacity: 0.6;
}
.thumb-item:hover {
  opacity: 0.9;
}
.thumb-item.active {
  border-color: var(--accent);
  opacity: 1;
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Placeholder */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: rgba(255, 255, 255, 0.3);
}
.gallery-placeholder i {
  font-size: 4rem;
}

/* Modal Sections */
.modal-section {
  margin-bottom: 1.5rem;
}
.modal-section h4 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-section h4::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.modal-section p {
  color: var(--gray);
  line-height: 1.8;
}
.modal-section ul {
  padding-right: 1rem;
}
.modal-section li {
  color: var(--gray);
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}
.modal-section li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Modal Stats */
.modal-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--light);
}
.modal-stat {
  text-align: center;
}
.modal-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.modal-stat-label {
  color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-main {
    height: 250px;
  }
  .modal-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* #projects {
  background: var(--light);
}
.filter-btns {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-btn:hover {
  transform: translateY(-3px);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}
.filter-btn.active i {
  color: var(--accent);
}
.sub-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  min-height: 40px;
}
.sub-filter-group {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.sub-filter-group.active {
  display: flex;
}
.sub-btn {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
}
.sub-btn:hover,
.sub-btn.active {
  background: var(--secondary);
  color: var(--white);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.project-card.hidden {
  display: none;
}
.project-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-img i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
}
.project-cat {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: 0.3s;
}
.project-card:hover .project-cat {
  opacity: 1;
}
.project-info {
  padding: 1.5rem;
}
.project-info h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.project-btn {
  background: var(--light);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.project-btn:hover {
  background: var(--primary);
  color: var(--white);
} */

/* MODAL */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
#modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--white);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  transform: scale(0.9);
  transition: 0.3s;
}
#modal.active .modal-box {
  transform: scale(1);
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 2rem;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.modal-close:hover {
  background: var(--accent);
  color: var(--primary);
}
.modal-cat {
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.modal-title {
  font-size: 1.8rem;
}
.modal-body {
  padding: 2rem;
}
.modal-section {
  margin-bottom: 1.5rem;
}
.modal-section h4 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-section h4::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.modal-section p {
  color: var(--gray);
  line-height: 1.8;
}
.modal-section ul {
  padding-right: 1rem;
}
.modal-section li {
  color: var(--gray);
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}
.modal-section li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: 700;
}
.modal-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--light);
}
.modal-stat {
  text-align: center;
}
.modal-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.modal-stat-label {
  color: var(--gray);
}

/* SERVICES */
#services {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: 0.3s;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-10px);
}
.service-card > * {
  position: relative;
  z-index: 1;
  transition: 0.3s;
}
.service-card:hover > * {
  color: var(--white);
}
.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: 0.3s;
}
.service-icon i {
  font-size: 1.8rem;
  color: var(--white);
}
.service-card:hover .service-icon {
  background: var(--accent);
  transform: rotate(10deg) scale(1.1);
}
.service-card:hover .service-icon i {
  color: var(--primary);
}
.service-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--gray);
}
.service-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* CTA */
#cta {
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  background-image: url("./uploads/Call\ to\ Action\ -01.png") !important;
  background-size: cover;
  text-align: center;
  color: var(--white);
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btn {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-btn.primary {
  background: var(--accent);
  color: var(--primary);
}
.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.cta-btn:hover {
  transform: translateY(-5px);
}

/* CONTACT */
#contact {
  background: var(--light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}
.info-item:hover {
  transform: translateX(-10px);
}
.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.info-text h4 {
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.info-text p {
  color: var(--gray);
  font-size: 0.95rem;
}
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
  color: var(--accent);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(22, 51, 125, 0.3);
}

/* FOOTER */
#footer {
  /* background: var(--dark); */
  background-image: url("./uploads/Call\ to\ Action\ -01.png") !important;
  background-size: cover;
  color: var(--white);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}
.footer-logo {
  max-width: 140px;
  /* margin-bottom: 1rem; */
}
.footer-about {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
}
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.social-link:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-5px);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateX(-5px);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-contact li {
  display: flex;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

/* BACK TO TOP */
#backTop {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}
#backTop.show {
  opacity: 1;
  visibility: visible;
}
#backTop:hover {
  transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu a {
    color: var(--primary);
    font-size: 1.2rem;
  }
  .menu-btn {
    display: flex;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .partners-showcase {
    flex-direction: column;
  }
  .connection-line {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4::after {
    right: 50%;
    transform: translateX(50%);
  }
  .footer-social,
  .footer-links {
    justify-content: center;
    align-items: center;
  }
  .footer-contact {
    align-items: center;
  }
  .stats-row {
    gap: 1.5rem;
  }
  .modal-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .hero-logo {
    max-width: 150px;
  }
  .branch-item {
    width: 65px;
    height: 65px;
  }
  .partner-card {
    width: 100%;
    max-width: 320px;
  }
  .hero-content {
    margin-top: -2rem !important;
  }
  .footer-logo {
    justify-self: center;
  }
}
@media (max-width: 768px) {
  .footer-logo {
    justify-self: center;
  }
}

/* Logo Slider section   */
/*.logo-section {*/
/*  padding: 1rem 5rem !important;*/
/*}*/
/*.logo-slider2 {*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*  direction: rtl;*/
/*}*/

/*.logo-track2 {*/
/*  display: flex;*/
/*  gap: 24px;*/
/*  width: max-content;*/
/*  animation: scroll-rtl 26s linear infinite;*/
/*}*/

/*.logo-s {*/
/*  min-width: 160px;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  text-decoration: none;*/
/*}*/

/*.logo-s img {*/
/*  max-width: 190px;*/
/*  opacity: 0.75;*/
/*  filter: grayscale(100%);*/
/*  transition: all 0.35s ease;*/
/*  pointer-events: none;*/
/*}*/

/*.logo-s:hover img {*/
/*  filter: grayscale(0%);*/
/*  opacity: 1;*/
/*  transform: scale(1.07);*/
/*}*/

/* Pause on hover */
/*.logo-slider2:hover .logo-track2 {*/
/*  animation-play-state: paused;*/
/*}*/

/* RTL Animation */
@keyframes scroll-rtl {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #ffcc00;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #16337d;
}

:root {
  --primary: #16337d;
  --secondary: #5075aa;
  --accent: #ffcc00;
  --dark: #0f2358;
  --light: #f8f9fa;
  --white: #fff;
  --gray: #666;
}

/* whatsapp  */
.demo-label {
      text-align: center;
      color: #888;
      font-size: 1.1rem;
      letter-spacing: .05em;
    }

    /* ══════════════════════════════
       WHATSAPP WIDGET — COPY FROM HERE
       ══════════════════════════════ */

    /* Wrapper — fixed to bottom-right */
    .wa-widget {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    /* Tooltip bubble */
    .wa-tooltip {
      background: #fff;
      color: #333;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.85rem;
      font-weight: 500;
      padding: 10px 16px;
      border-radius: 20px 20px 4px 20px;
      box-shadow: 0 4px 20px rgba(0,0,0,.12);
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transform: translateY(6px) scale(0.95);
      transition: opacity .3s ease, transform .3s ease;
      position: relative;
    }

    /* Show tooltip when button is hovered */
    .wa-widget:hover .wa-tooltip {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Main button */
    .wa-btn {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: #25D366;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      text-decoration: none;
      box-shadow:
        0 4px 12px rgba(37,211,102,.5),
        0 2px 6px rgba(0,0,0,.15);
      position: relative;
      transition: transform .2s ease, box-shadow .2s ease;

      /* Entrance animation */
      animation: wa-pop-in .5s cubic-bezier(.34,1.56,.64,1) both;
    }

    .wa-btn:hover {
      transform: scale(1.1);
      box-shadow:
        0 6px 20px rgba(37,211,102,.6),
        0 3px 10px rgba(0,0,0,.2);
    }

    .wa-btn:active {
      transform: scale(0.96);
    }

    /* Ripple / pulse rings */
    .wa-btn::before,
    .wa-btn::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: #25D366;
      opacity: .5;
      animation: wa-ripple 2.4s ease-out infinite;
    }

    .wa-btn::after {
      animation-delay: 1.2s;
    }

    /* SVG icon */
    .wa-btn svg {
      width: 32px;
      height: 32px;
      fill: #fff;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
    }

    /* Notification dot */
    .wa-dot {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 13px;
      height: 13px;
      background: #ff3b30;
      border-radius: 50%;
      border: 2px solid #fff;
      z-index: 2;
      animation: wa-dot-pulse 1.8s ease-in-out infinite;
    }

    /* ── Keyframes ── */

    @keyframes wa-pop-in {
      from { opacity: 0; transform: scale(0) rotate(-30deg); }
      to   { opacity: 1; transform: scale(1) rotate(0deg); }
    }

    @keyframes wa-ripple {
      0%   { transform: scale(1);   opacity: .5; }
      80%  { transform: scale(2);   opacity: 0;  }
      100% { transform: scale(2);   opacity: 0;  }
    }

    @keyframes wa-dot-pulse {
      0%, 100% { transform: scale(1); }
      50%       { transform: scale(1.25); }
    }

    /* ══════════════════════════════
       END OF WIDGET CODE
       ══════════════════════════════ */ 