/* --- 1. CORE VARIABLES & RESET --- */
:root {
  /* LIGHT THEME VARIABLES */
  --c-bg-main: #ffffff;
  --c-bg-alt: #f8f9fa;
  --c-text-main: #222222;
  --c-text-muted: #666666;

  --c-dark-blue: #03718C;
  --c-mid-blue: #04A1C8;
  --c-light-blue: #0FCBFA;
  --c-yellow: #F5E400;
  --c-white: #ffffff;

  --font-head: 'Exo 2', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg-main);
  color: var(--c-text-main);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: var(--c-dark-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-yellow);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

a {
  text-decoration: none;
}

/* --- 2. UTILITY CLASSES --- */
.text-gradient {
  background: linear-gradient(to right, var(--c-mid-blue), var(--c-dark-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-yellow {
  color: var(--c-yellow) !important;
}

.text-blue {
  color: var(--c-mid-blue) !important;
}

.text-dark-blue {
  color: var(--c-dark-blue) !important;
}

.bg-gradient-overlay {
  background: linear-gradient(135deg, var(--c-dark-blue) 0%, var(--c-mid-blue) 100%);
}

/* --- 3. BUTTONS (HIGH IMPACT) --- */
.btn-tech {
  position: relative;
  padding: 15px 40px;
  background: var(--c-dark-blue);
  color: white;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  overflow: hidden;
  transition: 0.4s;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-tech:hover {
  background: var(--c-mid-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(3, 113, 140, 0.3);
}

.btn-outline-tech {
  padding: 13px 38px;
  background: transparent;
  color: var(--c-dark-blue);
  border: 2px solid var(--c-dark-blue);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.4s;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-outline-tech:hover {
  background: var(--c-dark-blue);
  color: white;
  box-shadow: 0 5px 15px rgba(3, 113, 140, 0.2);
}

/* --- 4. PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-logo {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--c-dark-blue);
  animation: pulse 2s infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: #eee;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--c-dark-blue);
  animation: load 2s ease-in-out forwards;
}

@keyframes load {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* --- 5. NAVBAR --- */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  transition: 0.4s;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.8rem;
  color: #000 !important;
}

.brand-mkh {
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-eng {
  color: var(--c-dark-blue);
  font-weight: 300;
}

.nav-link {
  color: #444 !important;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-left: 20px;
  position: relative;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-mid-blue) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--c-yellow);
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- 6. HERO SECTION --- */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.swiper-slide-hero {
  background-size: cover;
  background-position: center;
  height: 100vh;
}

/* Light Overlay for Hero */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  display: flex;
  align-items: center;
}

/* Tech Grid Background Effect */
.hero-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(3, 113, 140, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 113, 140, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: -1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-top: 15px;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #000;
}

.hero-content p {
  font-size: 1.3rem;
  color: #444;
  border-left: 5px solid var(--c-yellow);
  padding-left: 20px;
  margin-bottom: 40px;
  max-width: 700px;
}

/* --- 7. SECTION STYLING --- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

.section-title h2 {
  font-size: 3rem;
  color: #000;
  z-index: 2;
  position: relative;
}

.section-title span {
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.03);
  font-weight: 900;
  z-index: 1;
  white-space: nowrap;
}

.line-accent {
  width: 60px;
  height: 4px;
  background: var(--c-mid-blue);
  margin-top: 10px;
  position: relative;
}

.line-accent::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  width: 10px;
  height: 4px;
  background: var(--c-yellow);
}

/* --- 8. SERVICES (Light Cards) --- */
.services-section {
  background: var(--c-bg-alt);
  position: relative;
}

.service-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 0;
  transition: 0.4s;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-dark-blue), var(--c-light-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.5s;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
  position: relative;
}

.service-icon-overlay {
  position: absolute;
  top: -30px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--c-yellow);
  color: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- 9. WHY US (Diagonal Cut - Dark Contrast) --- */
.why-us-section {
  background: linear-gradient(135deg, var(--c-dark-blue) 0%, #024a5c 80%);
  position: relative;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  padding: 150px 0;
  color: white;
}

.feature-item {
  display: flex;
  margin-bottom: 30px;
}

.feature-icon {
  min-width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--c-light-blue);
  color: var(--c-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
}

/* --- 10. PROJECTS GRID (Detailed Light Cards) --- */
.project-card-detailed {
  background: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-detailed:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(3, 113, 140, 0.15);
}

.project-img {
  height: 240px;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--c-yellow);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.project-card-detailed:hover .project-img img {
  transform: scale(1.05);
}

.project-body {
  padding: 30px;
  flex-grow: 1;
}

.client-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.client-name {
  font-weight: 800;
  color: var(--c-dark-blue);
  font-size: 1.1rem;
}

.client-industry {
  background: var(--c-bg-alt);
  color: #555;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-points {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.project-points li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: start;
}

.point-label {
  font-weight: 700;
  color: #222;
  min-width: 80px;
  margin-right: 5px;
}

/* --- 11. TESTIMONIALS --- */
.testimonial-box {
  background: #fff;
  border-left: 3px solid var(--c-yellow);
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.03);
}

/* --- 12. CONTACT FORM (Light) --- */
.form-control-light {
  background: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
  padding: 15px;
  border-radius: 0;
}

.form-control-light:focus {
  background: #fff;
  border-color: var(--c-mid-blue);
  box-shadow: none;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: var(--c-mid-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

/* --- 13. FOOTER --- */
.main-footer {
  background: #050505;
  padding-top: 80px;
  border-top: 1px solid #222;
  color: #aaa;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: 0.3s;
  border-radius: 0;
}

.social-btn:hover {
  background: var(--c-yellow);
  color: #000;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .why-us-section {
    clip-path: none;
    padding: 80px 0;
  }

  .btn-tech {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* Floating Action Buttons */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fab-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  cursor: pointer;
}

.whatsapp-fab {
  background: #25D366;
  color: white;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.top-fab {
  background: var(--c-mid-blue);
  color: white;
  display: none;
}

.lang-sticky {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  border-right: 0;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-opt {
  display: block;
  padding: 10px 15px;
  color: #666;
  font-weight: bold;
  font-size: 0.8rem;
  transition: 0.2s;
}

.lang-opt:hover,
.lang-opt.active {
  background: var(--c-mid-blue);
  color: white;
}

/* Banner Styles */
.page-header {
  height: 400px;
  background: url('https://placehold.co/1920x600/111/333?text=Project+Gallery') center/cover;
  position: relative;
  display: flex;
  align-items: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(3, 113, 140, 0.9) 0%, rgba(3, 113, 140, 0.6) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-back:hover {
  background: var(--c-yellow);
  color: #000;
  border-color: var(--c-yellow);
}

/* Filter Bar */
.filter-btn {
  border: none;
  background: none;
  font-weight: 700;
  color: #888;
  margin: 0 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: 0.3s;
  padding-bottom: 5px;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--c-dark-blue);
  border-bottom: 2px solid var(--c-yellow);
}

/* Sidebar */
.sidebar-widget {
  background: #fff;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #eee;
}

.widget-title {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.cat-list li a {
  color: #555;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}

.cat-list li a:hover {
  color: var(--c-dark-blue);
}

/* Blog Content Styles */
.post-meta {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.post-meta span {
  margin-right: 15px;
}

.post-meta i {
  color: var(--c-yellow);
  margin-right: 5px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid var(--c-yellow);
  padding-left: 15px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 0;
}

.blockquote-custom {
  background: var(--c-bg-light);
  border-left: 5px solid var(--c-dark-blue);
  padding: 30px;
  margin: 40px 0;
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #333;
}

/* Share & Tags */
.post-footer {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  margin-top: 50px;
}

.social-share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #555;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
  margin-right: 5px;
}

.social-share-btn:hover {
  background: var(--c-dark-blue);
  color: white;
}

/* Sidebar */
.sidebar-widget {
  background: var(--c-bg-light);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #eee;
}

.widget-title {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.cat-list li a {
  color: #555;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}

.cat-list li a:hover {
  color: var(--c-dark-blue);
}

.recent-post-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.recent-post-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin-right: 15px;
  background: #ccc;
}

.recent-post-info h6 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.recent-post-info h6 a {
  color: #333;
  text-decoration: none;
}

.recent-post-info h6 a:hover {
  color: var(--c-mid-blue);
}

.recent-post-info small {
  font-size: 0.8rem;
  color: #888;
}

/* Sidebar Stats */
.project-sidebar {
  background: var(--c-bg-light);
  padding: 30px;
  border-top: 4px solid var(--c-yellow);
  position: sticky;
  top: 100px;
}

.stat-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-dark-blue);
}

/* Content Styling */
.content-block h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid var(--c-mid-blue);
  padding-left: 15px;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

/* --- GALLERY SECTION (Images & Videos) --- */
.gallery-grid {
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 113, 140, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.gallery-icon {
  color: white;
  font-size: 2rem;
  border: 2px solid white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Video Badge */
.video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--c-yellow);
  color: black;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

/* Lightbox Modal */
.modal-content {
  background: transparent;
  border: none;
}

.modal-body {
  padding: 0;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Content Styles */
.service-image {
  height: 400px;
  overflow: hidden;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--c-yellow);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-block h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--c-dark-blue);
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
  border-left: 4px solid var(--c-mid-blue);
  padding-left: 20px;
}

/* Process Steps */
.process-step {
  display: flex;
  margin-bottom: 30px;
}

.step-number {
  min-width: 50px;
  height: 50px;
  background: var(--c-dark-blue);
  color: white;
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.step-content h5 {
  color: #333;
  margin-bottom: 10px;
}

/* Sidebar Navigation */
.sidebar-widget {
  background: var(--c-bg-light);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #eee;
}

.widget-title {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  margin-bottom: 10px;
}

.service-list a {
  display: block;
  padding: 15px 20px;
  background: #fff;
  border: 1px solid #eee;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-list a:hover,
.service-list a.active {
  background: var(--c-dark-blue);
  color: white;
  border-color: var(--c-dark-blue);
}

.service-list a.active i {
  color: var(--c-yellow);
}

/* Download Widget */
.download-box {
  background: #222;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  transition: 0.3s;
  text-decoration: none;
}

.download-box:hover {
  background: var(--c-mid-blue);
}

.download-icon {
  font-size: 2rem;
  margin-right: 15px;
  color: var(--c-yellow);
}

/* Related Projects Mini */
.mini-project {
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  height: 180px;
  border-bottom: 3px solid var(--c-yellow);
}

.mini-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.mini-project:hover img {
  transform: scale(1.1);
}

.mini-project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 15px;
  color: white;
}

/* AR */
/* ==== RTL HERO FIXES ==== */
[dir="rtl"] .hero-content h1 {
  text-align: right;
}

[dir="rtl"] .hero-content p {
  text-align: right;
  border-left: none;
  padding-left: 0;
  border-right: 5px solid var(--c-yellow);
  padding-right: 20px;
}

/* Make hero buttons align nicely in RTL */
[dir="rtl"] .hero-content .btn-tech,
[dir="rtl"] .hero-content .btn-outline-tech {
  direction: rtl;
}

/* Swiper pagination dots position fix for RTL if needed */
[dir="rtl"] .heroSwiper .swiper-pagination {
  text-align: right !important;
}

/* About section – experience badge */
.about-exp-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--c-yellow);
  padding: 20px;
  color: black;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: left;
}

/* Flip badge position + text alignment in RTL */
[dir="rtl"] .about-exp-badge {
  left: auto;
  right: -20px;
  text-align: right;
}

/* Icons spacing for mission / vision / goals */
.about-brief-icon {
  margin-right: 0.75rem; /* nice breathing room in LTR */
}

/* In RTL, move space to the other side */
[dir="rtl"] .about-brief-icon {
  margin-right: 0;
  margin-left: 0.75rem;
}

/* SERVICES – RTL TWEAKS */
[dir="rtl"] .services-section .section-title h2,
[dir="rtl"] .services-section .section-title h5,
[dir="rtl"] .services-section .section-title span {
  text-align: center;
}

[dir="rtl"] .services-section .text-muted {
  text-align: center;
}

/* Flip the yellow floating icon block */
[dir="rtl"] .service-icon-overlay {
  right: auto;
  left: 20px;
}

/* Align card text to the right in AR */
[dir="rtl"] .service-card .service-content {
  text-align: right;
}

/* WHY-US – consistent spacing between icon and text (LTR & RTL) */
.why-us-section .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;           /* adjust to taste: 16–24px */
}

/* Remove old margin from icon so gap does all the work */
.why-us-section .feature-icon {
  margin: 0 !important;
}

/* PROJECTS – RTL TWEAKS */

/* Swap title + button sides in RTL */
[dir="rtl"] #projects .d-flex.align-items-end {
  flex-direction: row-reverse;
}

/* Align headings nicely on the right in RTL */
[dir="rtl"] #projects .section-title h2,
[dir="rtl"] #projects .section-title h5,
[dir="rtl"] #projects .section-title span {
  text-align: right;
}

/* Move the blue/yellow accent line to the right in RTL */
[dir="rtl"] #projects .line-accent {
  margin-left: 0;
  margin-right: 0;   /* you can add auto if you want it under text */
}

/* Client meta row (name + industry) – keep spacing correct in RTL */
/* [dir="rtl"] #projects .client-meta {
  flex-direction: row-reverse;
} */


/* Project points list – keep text and labels comfortable in RTL */
[dir="rtl"] #projects .project-points li {
  text-align: right;
}

/* Label spacing (Challenge / Solution / Result) */
[dir="rtl"] #projects .point-label {
  margin-right: 0;
  margin-left: 5px;  /* small gap between label and text on RTL side */
}

/* NEWS / BLOG – RTL TWEAKS */

/* Align section title to the right in AR */
[dir="rtl"] #news .section-title {
  text-align: right;
}

/* Make the accent line sit nicely under the text on the right */
[dir="rtl"] #news .section-title .line-accent {
  margin-left: 0;
  margin-right: 0;          /* or auto if you want a different look */
}

/* Card text alignment in RTL */
[dir="rtl"] #news .card-body {
  text-align: right;
}

/* Ensure date + read link follow the RTL alignment nicely */
[dir="rtl"] #news .card-body small,
[dir="rtl"] #news .card-body .card-title,
[dir="rtl"] #news .card-body a {
  display: block;
}

/* RTL fixes for Bootstrap accordion arrow */
[dir="rtl"] .accordion-button {
  text-align: right;         /* question aligned to the right */
  padding-right: 1.25rem;    /* normal right padding */
  padding-left: 3rem;        /* extra space on the left for the arrow */
}

[dir="rtl"] .accordion-button::after {
  margin-right: auto;        /* push arrow all the way to the left */
  margin-left: 0;            /* override Bootstrap's margin-left:auto */
}

/* (Optional) if arrow direction looks weird in RTL, you can flip it: */
/*
[dir="rtl"] .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}
*/

/* ==== FOOTER – RTL TWEAKS ==== */

/* Make footer content align nicely to the right in AR */
[dir="rtl"] .main-footer {
  text-align: right;
}

/* Brand title + paragraph */
[dir="rtl"] .main-footer h3,
[dir="rtl"] .main-footer h6,
[dir="rtl"] .main-footer p {
  text-align: right;
}

/* Quick links & services lists */
[dir="rtl"] .main-footer ul {
  padding-left: 0;          /* already list-unstyled, but just in case */
  padding-right: 0;
  margin-right: 0;
}

[dir="rtl"] .main-footer ul li a {
  display: block;
  text-align: right;
}

/* Social icons – flip spacing so gaps are between icons, not on the wrong side */
[dir="rtl"] .main-footer .social-btn {
  margin-right: 0;
  margin-left: 10px;
}

/* Locate Us: make heading align right too */
[dir="rtl"] .main-footer .col-lg-4 h6 {
  text-align: right;
}

/* Optional: reverse the main footer columns order in desktop for AR
   (brand on the right, locate-us on the left) – comment out if you don't want this */
@media (min-width: 992px) {
  [dir="rtl"] .main-footer .row.pb-5 {
    flex-direction: row-reverse;
  }
}

/* ==== PROJECT PAGE – RTL TWEAKS ==== */

/* Headings (01. Challenge, 02. Solution, etc.) – border on the right in AR */
[dir="rtl"] .content-block h3 {
  border-left: none;
  padding-left: 0;
  border-right: 5px solid var(--c-mid-blue);
  padding-right: 15px;
  text-align: right;
}

/* Lead text block under "The Challenge" – border/right alignment in AR */
[dir="rtl"] .lead-text {
  border-left: none;
  padding-left: 0;
  border-right: 4px solid var(--c-mid-blue);
  padding-right: 20px;
  text-align: right;
}

/* Project details sidebar – right-align labels and values in AR */
[dir="rtl"] .project-sidebar {
  text-align: right;
}

[dir="rtl"] .project-sidebar .stat-label,
[dir="rtl"] .project-sidebar .stat-value {
  text-align: right;
}

/* Bottom prev/next bar – keep things comfortable in AR */
[dir="rtl"] .border-top.border-bottom .col-6:first-child small,
[dir="rtl"] .border-top.border-bottom .col-6:first-child h5 {
  text-align: right;
}

[dir="rtl"] .border-top.border-bottom .col-6:last-child {
  text-align: left; /* because text-end in RTL becomes left; this keeps balance */
}

/* Fix banner back button layout in RTL */
[dir="rtl"] .btn-back {
  flex-direction: row-reverse; /* make flex children flow left-to-right */
}

/* Fix spacing between Arabic text and the arrow in RTL */
[dir="rtl"] .btn-back i {
  margin-right: 0;      /* undo Bootstrap's me-2 on the "end" side */
  margin-left: 0.5rem;  /* space between text and arrow on the right */
}

/* Bottom prev/next labels – fix icon order in RTL */
[dir="rtl"] .border-top.border-bottom .col-6 small {
  display: inline-flex;
  align-items: center;
}

/* 1) "Back to Projects" in AR: النص ثم السهم يمين */
[dir="rtl"] .border-top.border-bottom .col-6:first-child small i.fa-arrow-right {
  margin-inline: 0;        /* kill Bootstrap logical margin */
  margin-left: 0.5rem;     /* space between text and right arrow */
}

/* 2) "More Projects" in AR: سهم يسار ثم النص */
[dir="rtl"] .border-top.border-bottom .col-6:last-child small i.fa-arrow-left {
  margin-inline: 0;
  margin-right: 0.5rem;    /* space between left arrow and text */
}

/* Portfolio page banner – RTL alignment */
[dir="rtl"] .page-header .banner-content {
  text-align: right;
}

/* Make banner content align nicely to the right in AR */
[dir="rtl"] .page-header .banner-content {
  text-align: right;
}

/* "Read more" link – force icon to stay after text even in RTL */
.read-link {
  display: inline-flex;
  align-items: center;
}

/* Optional: align blog card text nicely in RTL */
[dir="rtl"] .blog-body,
[dir="rtl"] .blog-body .blog-date {
  text-align: right;
}

/* FORCE RTL read-more arrow to appear at the end → */
[dir="rtl"] .read-link {
    direction: rtl;
    display: inline-flex;
    align-items: center;
}

[dir="rtl"] .read-link i {
    order: 2;
    margin-left: 6px;
    margin-right: 0;
}

/* RTL back button → text then arrow */
[dir="rtl"] .btn-back {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-back i {
    margin-left: 6px;
    margin-right: 0;
}

/* --- 2. Auth-Specific Styles --- */
        .auth-section {
            font-family: var(--font-body);
            background-color: #f0f2f5;
            background-image: radial-gradient(#03718c 0.5px, transparent 0.5px), radial-gradient(#03718c 0.5px, #f0f2f5 0.5px);
            background-size: 20px 20px;
            background-position: 0 0, 10px 10px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.8; /* Pattern opacity */
        }

        .auth-wrapper {
            width: 100%;
            max-width: 420px;
            padding: 15px;
        }

        .auth-card {
            background: #ffffff;
            border: 1px solid rgba(0,0,0,0.1);
            box-shadow: 0 10px 30px rgba(3, 113, 140, 0.15);
            padding: 40px 30px;
            position: relative;
            overflow: hidden;
        }

        /* Top colored bar */
        .auth-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 5px;
            background: linear-gradient(90deg, var(--c-dark-blue), var(--c-mid-blue));
        }

        .auth-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .brand-logo {
            font-family: var(--font-head);
            font-weight: 900;
            font-size: 2rem;
            color: #000;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 10px;
        }
        .brand-logo span { color: var(--c-mid-blue); }

        .form-control-auth {
            height: 50px;
            border-radius: 0;
            border: 1px solid #ddd;
            padding-inline-start: 45px; /* RTL Friendly padding */
        }
        
        .form-control-auth:focus {
            border-color: var(--c-mid-blue);
            box-shadow: 0 0 0 0.2rem rgba(3, 113, 140, 0.15);
        }

        .input-icon-wrapper {
            position: relative;
            margin-bottom: 20px;
        }

        .input-icon {
            position: absolute;
            top: 50%;
            left: 15px; /* Default LTR */
            transform: translateY(-50%);
            color: #aaa;
            z-index: 10;
            transition: 0.3s;
        }

        /* RTL Support for Icons */
        [dir="rtl"] .input-icon {
            left: auto;
            right: 15px;
        }
        [dir="rtl"] .form-control-auth {
            padding-inline-start: 45px;
        }

        .form-control-auth:focus + .input-icon {
            color: var(--c-dark-blue);
        }

        .btn-auth {
            width: 100%;
            padding: 12px;
            background: var(--c-dark-blue);
            color: white;
            font-family: var(--font-head);
            font-weight: 700;
            text-transform: uppercase;
            border: none;
            transition: 0.3s;
            clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
        }

        .btn-auth:hover {
            background: var(--c-mid-blue) !important;
            color: white;
            transform: translateY(-2px);
        }

        .auth-links {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            font-size: 0.9rem;
        }

        .auth-links a {
            color: var(--c-text-main);
            text-decoration: none;
            transition: 0.2s;
        }
        .auth-links a:hover {
            color: var(--c-dark-blue);
            text-decoration: underline;
        }

        .back-home {
            display: block;
            text-align: center;
            margin-top: 25px;
            font-size: 0.85rem;
            color: #777;
            text-decoration: none;
        }
        .back-home:hover { color: var(--c-dark-blue); }

        /* --- TEAM SECTION (Single Group) --- */
        .team-group-img {
            position: relative;
            border-bottom: 5px solid var(--c-yellow);
            border-right: 5px solid var(--c-yellow);
            box-shadow: -10px -10px 0 rgba(3, 113, 140, 0.1);
        }
        .team-group-img img {
            width: 100%;
            height: auto;
            display: block;
            filter: grayscale(20%); /* Slight industrial desaturation */
            transition: 0.5s;
        }
        .team-group-img:hover img {
            filter: grayscale(0);
        }

        /* Fix Phone Number Alignment in case dir="ltr" affects it */
[dir="rtl"] .contact-icon-box + div p span[dir="ltr"] {
    display: inline-block;
    text-align: right;
}

/* Fix Icon Spacing */
/* Reset the right margin and add left margin instead */
[dir="rtl"] .contact-icon-box {
    margin-right: 0 !important; 
    margin-left: 15px !important;
}

/* Ensure the Bootstrap utility 'me-3' doesn't conflict if used */
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

/* --- Custom Pagination Styling (Matches MKH Theme) --- */

.pagination {
    justify-content: center; /* Center the pagination */
    margin-top: 50px;
    margin-bottom: 50px;
    gap: 5px; /* Space between buttons */
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 0; /* Remove default rounded corners */
}

.page-item .page-link {
    color: var(--c-dark-blue); /* #03718C */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0; /* Industrial sharp look */
    padding: 12px 20px;
    font-family: var(--font-head); /* Exo 2 */
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: inline-block; /* Ensure transforms work */
}

/* Hover State */
.page-item .page-link:hover {
    background-color: var(--c-mid-blue); /* #04A1C8 */
    border-color: var(--c-mid-blue);
    color: #fff;
    transform: translateY(-3px); /* Lift effect like your buttons */
    box-shadow: 0 5px 15px rgba(4, 161, 200, 0.2);
    z-index: 2;
}

/* Active State (Current Page) */
.page-item.active .page-link {
    background-color: var(--c-dark-blue); /* #03718C */
    border-color: var(--c-dark-blue);
    color: #fff;
    pointer-events: none; /* Disable clicking active page */
}

/* Disabled State */
.page-item.disabled .page-link {
    color: #aaa;
    background-color: #f9f9f9;
    border-color: #eee;
    pointer-events: none;
    box-shadow: none;
}

/* RTL Support (if your site uses dir="rtl") */
[dir="rtl"] .pagination {
    /* Ensure flex direction is row so visual order is natural (Right to Left) */
    flex-direction: row; 
}

/* Flip the arrows for the First (Prev) and Last (Next) buttons in RTL mode */
/* using scaleX(-1) mirrors the icon horizontally */
[dir="rtl"] .page-item:first-child .page-link,
[dir="rtl"] .page-item:last-child .page-link {
    transform: scaleX(-1); 
}

/* Blog Card */
        .blog-card {
            background: #fff; border: none; border-radius: 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: 0.3s; height: 100%; overflow: hidden;
        }
        .blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
        .blog-img { height: 220px; overflow: hidden; position: relative; }
        .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .blog-card:hover .blog-img img { transform: scale(1.1); }
        .blog-badge {
            position: absolute; top: 15px; left: 15px;
            background: var(--c-yellow); color: #000;
            font-weight: bold; padding: 5px 10px; font-size: 0.75rem; text-transform: uppercase;
        }
        .blog-body { padding: 25px; }
        .blog-date { color: #888; font-size: 0.85rem; margin-bottom: 10px; display: block; }
        .read-link { color: var(--c-dark-blue); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; text-decoration: none; }
        .read-link:hover { color: var(--c-mid-blue); text-decoration: underline; }
        
        /* Mobile navbar layout */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .navbar .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }

  .nav-contact-block {
    width: 100%;
  }

  .nav-contact-info a {
    text-align: center;
  }
}

body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 2l7 19 3-8 8-3L2 2z" fill="%23F5E400" stroke="%23000000" stroke-width="1.5" stroke-linejoin="round"/></svg>') 2 2, auto;
}

/* 2. Pointer Cursor: The "Snap" Box
   (Mimics CAD software snapping to a grid/point when hovering links) */
a, button, .btn, .nav-link, .card, .service-card, input, textarea, select, .page-link, .gallery-item {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="8" y="8" width="16" height="16" fill="rgba(3, 113, 140, 0.1)" stroke="%2303718C" stroke-width="2"/><line x1="16" y1="4" x2="16" y2="28" stroke="%2303718C" stroke-width="1" stroke-dasharray="2,2"/><line x1="4" y1="16" x2="28" y2="16" stroke="%2303718C" stroke-width="1" stroke-dasharray="2,2"/></svg>') 16 16, pointer;
}

/* 3. Text Selection: Standard I-Beam */
p, h1, h2, h3, h4, h5, h6, span {
    cursor: text;
}

[dir="rtl"] .article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  border-right: 5px solid var(--c-yellow);
  border-left: none;
  padding-right: 15px;
}