/* ======================================================
   1. FONT IMPORT (NEW)
   ====================================================== */
/* استبدل Poppins بـ Montserrat لخط إنجليزي أكثر أناقة، مع الاحتفاظ بـ Tajawal للعربي */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Tajawal:wght@300;400;500;700&display=swap'); */

/* ... باقي الكود ... */

/* ======================================================
   Table of Contents
   ------------------------------------------------------
   1.  Global Styles & New Color Palette
   2.  General Typography & Links
   3.  Header & Logo Styles
   4.  Mobile Menu
   5.  Hero Section
   6.  About Section
   7.  Services Section (UPDATED FOR DARK BG)
   8.  Features Section (OLD - Not used)
   8.5. Process Section
   9.  Portfolio Section
   9.5. Testimonials Section (UPDATED FOR LIGHT BG)
   9.7. NEW: Redesigned Features Section
   9.8. NEW: Team Section
   10. Contact Section (UPDATED FOR DARK BG)
   11. Footer (NEW DESIGN)
   12. Utility Classes (Buttons, Back-to-Top)
   13. Responsive Media Queries
   14. Professional Touches
   15. Internal Page Styles
   ====================================================== */

/* ======================================================
   1. Global Styles & New Color Palette
   ====================================================== */
:root {
  --dark-primary: #030303;
  --dark-secondary: #2C2929;
  --light-primary: #F5F4F2;
  --light-secondary: #DCD7D4;
  --accent: #C3B79D;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* body {
  font-family: 'Tajawal', 'Poppins', sans-serif;
  font-weight: 400;
  background-color: var(--dark-secondary);
  overflow-x: hidden;
  transition: all 0.4s ease;
  color: var(--dark-secondary);
  animation: fadeIn 1s ease-out;
} */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================================================
   2. General Typography & Links
   ====================================================== */
/* ======================================================
   2. General Typography & Links
   ====================================================== */
h1, h2, h3, h4, h5, h6 {
  /* تغيير ترتيب الخطوط: تفضيل Tajawal للعربي، وسقوط لـ Montserrat */
  font-family: 'Tajawal', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark-secondary); 
}

body {
  /* تغيير ترتيب الخطوط: Tajawal كخط أساسي */
  font-family: 'Tajawal', 'Montserrat', sans-serif;
  font-weight: 400;
  background-color: var(--dark-secondary);
  overflow-x: hidden;
  transition: all 0.4s ease;
  color: var(--dark-secondary);
  animation: fadeIn 1s ease-out;
}

/* ... باقي الكود ... */
h2.section-title {
  color: var(--dark-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ======================================================
   3. Header & Logo Styles
   ====================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var( --light-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 10px 0;
}

header.scrolled {
  background-color:var( --light-primary);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-img {
  padding: 5px;
  width: 65px;
  height: 65px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 600;
  margin: 0 8px;
  position: relative;
  color: var(--dark-secondary) !important;
  transition: all 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-primary);
  z-index: 1001;
}

/* ======================================================
   4. Mobile Menu
   ====================================================== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--light-secondary);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  padding: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.mobile-menu.open {
  max-height: 100vh;
}

.mobile-menu .nav-link {
  padding: 15px 25px;
  border-bottom: 1px solid var(--dark-primary);
  margin: 0;
  display: block;
  width: 100%;
}

.mobile-menu .nav-link:hover {
  background-color: var(--dark-primary);
  color: var(--accent) !important;
}

.mobile-menu .nav-link::after {
  display: none;
}

/* ======================================================
   5. Hero Section
   ====================================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.3) 0%, rgba(44, 41, 41, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1.5s ease;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--light-primary); 
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  animation: floatText 6s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   6. About Section
   ====================================================== */
.about-section {
  background: var(--light-primary);
  color: var(--dark-primary);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--dark-secondary);
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-primary);
  margin-bottom: 20px;
  text-align: center;
}

.about-text {
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-primary);
  line-height: 1.9;
  font-size: 1.1rem;
  text-align: center;
}

.about-text .highlight {
  color: var(--accent);
  font-weight: 600;
}

.about-img-wrap {
  position: relative;
  width: 90%;
  max-width: 430px;
  margin: 0 auto;
}

.about-img {
  margin-top: 80px;
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  transition: all 0.6s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(195, 183, 157, 0.3);
}
.about-img.main { z-index: 3; width: 88%; left: -10%; }
.about-img.side1 { position: absolute; top: -60px; left: -6%; width: 60%; z-index: 2; transform: rotate(-5deg); filter: brightness(0.9); }
.about-img.side2 { height: 65%; position: absolute; bottom: -50px; right: -7%; width: 45%; z-index: 1; transform: rotate(8deg); filter: brightness(0.8); }
.about-img-wrap:hover .about-img { transform: scale(1.03); }
.about-img-wrap:hover .side1 { transform: rotate(-3deg) scale(1.05); }
.about-img-wrap:hover .side2 { transform: rotate(6deg) scale(1.05); }

/* ======================================================
   7. Services Section (UPDATED FOR DARK BG)
   ====================================================== */
/* bg-light is no longer used here, we use bg-p */
.bg-light {
  background: var( --light-secondary) !important;
  min-height: 80vh;
}

.col-md-6 {
  margin-top: 30px;
}

.row {
  margin-bottom: 30px;
}

/* OLD .service-card (dark) */
.service-card {
  background: var(--dark-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  height: 100%;
  border-top: 4px solid var(--accent);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(195, 183, 157, 0.1);
}

/* NEW .service-card-light (for dark BG) */
.service-card-light {
  background: var(--light-primary); /* Light card */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
  border-top: 4px solid var(--accent);
}

.service-card-light:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Updated .service-content to be dark text */
.service-content {
  padding: 25px;
  color: var(--dark-secondary); /* Dark text */
}

.service-content h5 {
  color: var(--dark-secondary); /* Accent title */
}

/* ======================================================
   8. Features Section (OLD - Not used in index.html anymore)
   ====================================================== */
.bg-f {
  background: var( --light-primary) !important;
  min-height: 80vh;
}

#features {
  min-height: 80vh;
}

.feature-box {
  padding: 20px;
  background: var(--dark-secondary);
  border-radius: 10px;
  height: 100%;
  transition: all 0.3s;
  margin-bottom: 30px;
  border: 1px solid var(--dark-primary);
}
.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(195, 183, 157, 0.1);
  border-color: var(--accent);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}
.feature-box h5 {
  color: var(--accent);
}
.feature-box p {
  color: var(--light-secondary);
}
.features-list-container {
  background-color: var(--dark-secondary) !important;
}
.bg-dark h4{
   color: var(--accent);
}
.features-list {
  list-style: none;
  padding: 0;
}
.features-list li {
  margin-bottom: 15px;
  padding-right: 30px;
  position: relative;
  color: var(--light-primary);
}
.features-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ======================================================
   8.5. NEW: Redesigned Process Section
   ====================================================== */
.process-section {
  background-color: var(--light-primary);
}

.process-step {
  text-align: center;
  padding: 25px;
  background: var(--light-secondary);
  border-radius: 10px;
  border-bottom: 4px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.process-step:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 25px auto;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-primary);
  font-size: 2.2rem;
  box-shadow: 0 0 0 8px rgba(195, 183, 157, 0.2);
}

.process-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--dark-secondary);
  color: var(--light-primary);
  width: 35px;
  height: 35px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--light-primary);
}

.process-step h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-secondary);
  margin-bottom: 10px;
}

.process-step p {
  color: var(--dark-secondary);
  line-height: 1.7;
}

 






/* ======================================================
   9.9. NEW: Elegant Stats Section
   ====================================================== */
   
#stats {
  /* القسم يستخدم bg-light */
  padding: 80px 0;
  min-height: auto !important; /* إلغاء الارتفاع المفرط */
}

.stat-card-elegant {
  background: var(--light-primary);
  border: 1px solid var(--light-secondary);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-elegant:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.stat-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px auto;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-primary);
  font-size: 1.8rem;
  box-shadow: 0 0 0 5px rgba(195, 183, 157, 0.3);
  transition: all 0.3s;
}

.stat-card-elegant:hover .stat-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(195, 183, 157, 0.5);
}

.stat-card-elegant h2 {
  color: var(--dark-secondary); /* لون الرقم */
  font-size: 3.5rem; /* حجم الخط */
  font-weight: 800;
  line-height: 1.2;
}

.stat-card-elegant p.lead {
  color: var(--accent); /* لون النص الوصفي */
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 5px;
}
/* ======================================================
   9. Portfolio Section
   ====================================================== */
  .bg-p{
    background: var(--dark-secondary);
  }

.section-title.s {
  color: var(--light-primary);
}

.bg-p p, .bg-p .lead {
  color: var(--light-secondary);
}


#portfolio {
  min-height: 80vh;
  padding-bottom: 20px;
}

.portfolio-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  margin-top: 10px;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}


.portfolio-carousel-track {
  display: flex;
  width: fit-content;
  gap: 20px;
}
[dir="rtl"] .portfolio-carousel {
  direction: ltr;
}
.portfolio-carousel-slide {
  flex-shrink: 0;
  width: 350px;
  height: 280px;
}

.portfolio-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-carousel-slide img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(195, 183, 157, 0.3);
}


/* ======================================================
   9.5. Testimonials Section (UPDATED FOR LIGHT BG)
   ====================================================== */
#testimonials {
  padding: 80px 0;
  position: relative;
}

.testimonial-card-light {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: var(--light-primary);
  background-color: #fffde2cf;
  /* border-radius: 0px; */
  text-align: center;
  /* border-top: 4px solid var(--accent); */
  box-shadow: 0 10px 30px rgba(147, 107, 107, 0.778);
  /* border: 0px solid var(--light-secondary); */
}

.testimonial-img {
  width: 90px;
  height: 90px;
  /* border-radius: 50%; */
  object-fit: cover;
  margin-bottom: 20px;
  /* border: 3px solid var(--accent); */
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--dark-secondary) !important;
  margin-bottom: 20px;
}

.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  margin: 0 5px;
}

.testimonial-name {
  color: var(--accent);
  font-weight: 600;
}

/* تحسين Indicators */
#testimonialCarousel .carousel-indicators {
  bottom: -60px;
}

#testimonialCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dark-secondary);
  border: 2px solid var(--light-primary);
  margin: 0 8px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

#testimonialCarousel .carousel-indicators .active {
  background-color: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* تحسين أزرار التحكم الجانبية */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  display: flex !important;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  border: 2px solid white;
 
}

#testimonialCarousel .carousel-control-prev {
  right: -1px;
  left: auto;
}

#testimonialCarousel .carousel-control-next {
  left: -1px;
  right: auto;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--primary);
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  background-image: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#testimonialCarousel .carousel-control-prev-icon::before {
  content: "›";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 24px;
  color: white;
  transform: rotate(180deg);
}

#testimonialCarousel .carousel-control-next-icon::before {
  content: "›";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 24px;
  color: white;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #testimonialCarousel .carousel-control-prev {
    right: -15px;
  }
  
  #testimonialCarousel .carousel-control-next {
    left: -15px;
  }
  
  .testimonial-card-light {
    padding: 30px 20px;
    margin: 0 15px;
  }
}

/* تأثيرات hover للبطاقة */
.testimonial-card-light {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
/* ======================================================
   9.7. NEW: Redesigned Features Section
   ====================================================== */
#features-redesigned {
  /* This section uses .bg-p (dark) */
  padding: 80px 0;
}

.feature-card-v2 {
  background: var(--light-primary); /* Light card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  height: 100%;
  border-bottom: 4px solid var(--accent);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon-v2 {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  /* Optional: Icon background */
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background: var(--light-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-v2 h5 {
  color: var(--dark-secondary); /* Dark title */
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-card-v2 p {
  color: var(--dark-secondary); /* Dark text */
  line-height: 1.7;
}

/* ======================================================
   9.8. NEW: Team Section
   ====================================================== */
#team {
  /* This section uses .bg-f (light) */
  padding: 80px 0;
}

.team-card {
  background: var(--light-primary);
  border: 1px solid var(--light-secondary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  text-align: center;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-name {
  color: var(--dark-secondary);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.team-title {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  font-style: italic;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social a {
  color: var(--dark-secondary);
  background-color: var(--light-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--accent);
  color: var(--dark-primary);
  transform: translateY(-5px);
}


/* ======================================================
   10. Contact Section (UPDATED FOR DARK BG)
   ====================================================== */
#contact {
  /* This section uses .bg-p (dark) */
  min-height: 80vh;
}

/* OLD .contact-info (dark) */
.contact-info {
  background: var(--dark-secondary);
  color: var(--light-primary);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  border: 1px solid var(--dark-primary);
}

/* NEW .contact-info-light */
.contact-info-light {
  background: var(--light-primary); /* Light box */
  color: var(--dark-secondary); /* Dark text */
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  border: 1px solid var(--light-secondary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.contact-info-light a {
  color: var(--dark-secondary);
}
.contact-info-light a:hover {
  color: var(--accent);
}
.contact-info-light h4, .contact-info-light h6 {
  color: var(--dark-secondary);
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
  margin: 0 auto 10px auto;
}

.form-control {
  padding: 12px 15px;
  border: 1px solid var(--dark-primary);
  border-radius: 5px;
  margin-bottom: 20px;
  transition: all 0.3s;
  background-color: var(--dark-secondary);
  color: var(--light-secondary);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(195, 183, 157, 0.25);
  background-color: var(--dark-secondary);
  color: var(--light-primary);
}

.form-control::placeholder {
  color: #777;
}


/* ======================================================
   11. Footer (NEW DESIGN)
   ====================================================== */
footer {
  text-align: right; /* Default to right for RTL */
  background: var(--dark-primary); /* Darkest background */
  color: var(--light-secondary); /* Light text */
  padding: 60px 0 0;
}

/* Make columns left-aligned on LTR, right-aligned on RTL */
.footer-col {
  text-align: start;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
}

.footer-logo-img {
  padding: 5px;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  background: var(--light-primary); /* Light background for logo */
  border-radius: 5px;
}

.footer-about-text {
  color: var(--light-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-icons-footer {
  display: flex;
  gap: 10px;
}

.social-icons-footer a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--dark-secondary); /* Darker icon bg */
  color: var(--light-primary);
  border-radius: 50%;
  margin: 0;
  transition: all 0.3s;
}

.social-icons-footer a:hover {
  background: var(--accent);
  color: var(--dark-primary);
  transform: translateY(-5px);
}

.footer-links h5 {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 10px;
  color: var(--accent); /* Accent title */
  font-size: 1.2rem;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0; /* Aligned to start (right in RTL) */
  width: 50px;
  height: 2px;
  background: var(--accent);
}

/* Specific for LTR */
[dir="ltr"] .footer-links h5::after {
  right: auto;
  left: 0;
}


.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--light-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 5px;
}
[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px;
}

/* Footer Contact Info List */
.footer-contact-info {
  list-style: none;
  padding: 0;
}
.footer-contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}
.footer-contact-info i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}
.footer-contact-info a,
.footer-contact-info span {
  color: var(--light-secondary);
}
.footer-contact-info a:hover {
  color: var(--accent);
  padding: 0;
}


/* Instagram Grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.instagram-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid var(--dark-secondary);
  transition: all 0.3s ease;
}
.instagram-grid a:hover img {
  border-color: var(--accent);
  transform: scale(1.05);
}


/* Copyright Sub-Footer */
.copyright {
  background: var(--dark-primary);
  border-top: 1px solid var(--dark-secondary);
  padding: 25px 0;
  margin-top: 40px;
}

.copyright-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* For mobile */
  gap: 15px;
}

.copyright-text p {
  margin: 0;
  color: var(--light-secondary); /* .mg class not needed */
}

.copyright-links a {
  color: var(--light-secondary);
  margin: 0 10px;
  font-size: 0.9rem;
}
.copyright-links a:hover {
  color: var(--accent);
}
.copyright-links span {
  color: var(--dark-secondary);
}


/* ======================================================
   12. Utility Classes (Buttons, Back-to-Top)
   ====================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--dark-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--light-primary);
  color: var(--dark-primary);
  transform: translateY(-3px);
}

.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  color: #FFF;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.lang-toggle {
  background: var(--accent);
  color: var(--dark-primary);
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s;
  margin-right: 15px;
}

.lang-toggle:hover {
  background: var(--light-primary);
  color: var(--dark-primary);
}

.btn-main {
  background-color: var(--accent);
  color: var(--dark-primary);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-main:hover {
  background-color: var(--light-primary);
  color: var(--dark-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(195, 183, 157, 0.2);
}

/* ======================================================
   13. Responsive Media Queries
   ====================================================== */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .about-img.side1,
  .about-img.side2 {
    display: none;
  }

  .about-img.main {
    left: 0;
    width: 100%;
  }
  
  .about-img-wrap {
    margin-bottom: 40px;
  }

  /* Footer responsive */
  .footer-col {
    text-align: center; /* Center all footer content on mobile */
  }
  .footer-logo {
    justify-content: center;
  }
  .social-icons-footer {
    justify-content: center;
  }
  .footer-links h5::after {
    right: 50%;
    transform: translateX(50%);
  }
  [dir="ltr"] .footer-links h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-contact-info li {
    justify-content: center;
  }
  .instagram-grid {
    max-width: 350px;
    margin: 0 auto;
  }

  .copyright-container {
    justify-content: center; /* Center copyright on mobile */
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .about-title, .section-title {
    font-size: 1.8rem;
  }
  
  .about-text {
    font-size: 1rem;
  }
  
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .portfolio-carousel-slide {
    width: 280px;
    height: 220px;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1800px); }
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .service-content, .contact-info-light {
    padding: 20px;
  }
  
  .copyright-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .copyright-links span {
    display: none; /* Hide separator */
  }

  .portfolio-carousel-slide {
    width: 240px;
    height: 190px;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1560px); }
  }
}

/* ======================================================
   14. NEW: Professional Touches
   ====================================================== */

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
  border: 2px solid var(--light-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: #a39a83;
}

/* ======================================================
   15. NEW: Internal Page Styles
   ====================================================== */

.internal-page-padding {
  padding-top: 120px; 
}

.branch-card {
  background: var(--light-primary);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.branch-card .branch-title {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
}

.map-embed {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  border: 0;
  margin-top: 20px;
}


/* Portfolio Section */
#portfolio {
  min-height: 80vh;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 8px;
}
.text-center text-white{
  font-style:var(--light);
}
.portfolio-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.5s;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(185, 182, 182, 0.552);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item.hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img,
.portfolio-item.hover .portfolio-img {
  transform: scale(1.1);
}