/*
 * =============================================
 * إعمار البنيان للألمنيوم والزجاج
 * ملف التنسيقات الرئيسي
 * =============================================
 */

/* =============================================
   إعدادات أساسية ومتغيرات الألوان
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0B3D91;
  --primary-dark: #082a66;
  --white: #FFFFFF;
  --light-gray: #F6F8FB;
  --text: #333333;
  --text-muted: #6B7280;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =============================================
   شريط التنقل (Navigation)
   ============================================= */
.nav {
  width: 100%;
  max-width: 100%;
  padding: 15px 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}
nav a,
#navbar a,
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff; /* أبيض في البداية */
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* لما الناف يصير أبيض (بعد التمرير) */
.nav.scrolled a,
.nav.scrolled .nav-links a {
  color: #0b3d91b3; /* الأزرق الحالي */
}

/* عند التمرير عليها */
.nav-links a:hover {
  opacity: 0.8;
  color: #0b3d91; /* تفاعل جميل حتى فوق */
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
    padding: 0 30px;

}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
    margin-right: 40px; /* يقرب اللوقو من اليمين */

}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: bold;
  font-size: 1.125rem;
  color: white;
  transition: color 0.3s;
}

.logo-icon {
  width: 40px;       
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon .logo-img {
   width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;/* نفس حواف المربع السابق لو كان موجود */
}


.nav.scrolled .logo-name {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.nav.scrolled .logo-sub {
  color: #0b3d91b3;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
    margin: 0 auto;

}

/* روابط التنقل */
.nav-links a {
 font-size: 16px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* عند التمرير (الخلفية بيضاء) الروابط تصير زرقاء */
.nav.scrolled .nav-links a {
  color: #0b3d91 !important;
}


.nav-cta {
  display: none;
}

/* =============================================
   الأزرار (Buttons)
   ============================================= */
.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}
/* زر "To order" */
.btn-order {
  background: white;
  color: #0b3d91 !important; /* إجبار اللون يشتغل فوق */
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #0b3d91;
  margin-left: 40px; /* يبعده عن الروابط */
}
.btn-order:hover {
  background: #0b3d91;
  color: white;
}

/* بعد السكروول الزر يعكس الألوان */
.nav.scrolled .btn-order {
  background: #0b3d91;
  color: white !important; 
  border: 2px solid #0b3d91;
}

.nav.scrolled .btn-order:hover {
  background: white;
  color: #0b3d91;
}

/* استايل الناف بعد السكروول */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* أزرار الموبايل */
.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.nav.scrolled .mobile-menu-btn {
  color: var(--primary);
}

/* =============================================
   قائمة الموبايل
   ============================================= */
.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.nav.scrolled .mobile-menu-btn {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 2rem;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu-links {
  list-style: none;
  margin-top: 2rem;
}

.mobile-menu-links a {
  display: block;
  padding: 1rem 0;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--light-gray);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: block;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* =============================================
   قسم الصفحة الرئيسية (Hero)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 61, 145, 0.9), rgba(11, 61, 145, 0.7), rgba(11, 61, 145, 0.9));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.625rem;
  height: 0.625rem;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-badge-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
  font-family: inherit;
}

.scroll-down:hover {
  color: white;
}

.scroll-down svg {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-subtitle {
    font-size: 1.875rem;
  }
}

/* =============================================
   الأقسام العامة
   ============================================= */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  section {
    padding: 7rem 0;
  }
  .section-title {
    font-size: 2.5rem;
  }
}

/* =============================================
   قسم الخدمات
   ============================================= */
.services {
  background: white;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #E8F1FB;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
  transition: color 0.3s;
}

.service-card:hover .service-icon svg {
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   قسم الكتالوج (Materials)
   ============================================= */
.catalog {
  background: var(--light-gray);
}

.filter-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9375rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: rgb(255, 255, 255);
}

.materials-grid {
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.material-card {
  background: #ffffffcc;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.material-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.material-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.material-card:hover .material-img img {
  transform: scale(1.1);
}

.material-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0b3d91cc, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.material-card:hover .material-overlay {
  opacity: 1;
}

.material-category {
  background: white;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.material-content {
  padding: 1.25rem;
}

.material-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.material-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.material-colors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.material-colors-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.color-dots {
  display: flex;
  gap: 0.25rem;
}

.color-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.color-more {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .materials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   قسم المشاريع
   ============================================= */
.projects {
  background: white;
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 61, 145, 0.9), rgba(11, 61, 145, 0.3), transparent);
}

.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-status.completed {
  background: #22C55E;
}

.project-status.in-progress {
  background: var(--primary);
}

.project-status svg {
  width: 1rem;
  height: 1rem;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: white;
}

.project-category {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-meta svg {
  width: 1rem;
  height: 1rem;
}
#projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1; /* يحافظ على تناسق المربعات */
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* يملأ المربع بالكامل */
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}



@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =============================================
   قسم من نحن
   ============================================= */
.about {
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.about-years {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-years-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-years-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-content h2 span {
  display: block;
  font-size: 1.5rem;
  color: rgba(11, 61, 145, 0.7);
  margin-top: 0.5rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: 2rem;
  }
  .stat-value {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   قسم التواصل
   ============================================= */
.contact {
  background: white;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-card iframe {
  border: none;
  width: 100%;
  height: 100%;
  display: block;
}

.contact-map-header {
  background: var(--primary);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
    border-bottom: 2px solid #0b3d91;

}

.contact-map {
  height: 100%;
  aspect-ratio: unset; /* نلغي النسبة الثابتة */
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}


.contact-form-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* رسالة النجاح */
.success-message {
  text-align: center;
  padding: 2rem;
}

.success-message svg {
  color: #22C55E;
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   الفوتر
   ============================================= */
.footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  text-align: center;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

.footer-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}

.social-link:hover {
  background: white;
  color: var(--primary);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

/* =============================================
   المودال
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 0.75rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--light-gray);
}

.modal-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.modal-content {
  padding: 1.5rem;
}

.modal-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-badge-primary {
  background: var(--primary);
  color: white;
}

.modal-badge-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.modal-badge-success {
  background: #22C55E;
  color: white;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.modal-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.modal-meta-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.modal-colors {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 0.5rem;
}

.modal-colors-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.modal-colors-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal-colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal-color {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
}

.modal-color-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
}

.modal-color-name {
  font-size: 0.875rem;
  color: var(--text);
}

/* =============================================
   Toast (رسائل التنبيه)
   ============================================= */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: #EF4444;
}

.toast.success {
  background: #22C55E;
}
.project-title,
.project-category,
.project-desc {
  display: none !important;
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
}


/* زر المنيو */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* القائمة الجانبية */
.mobile-menu {
  display: none;
}

@media (max-width: 668px) {
  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100vh;
    background: #fff;
    box-shadow: -3px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu-overlay {
    display: none;
  }

  .mobile-menu-overlay.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1000;
  }
}



/* =============================================
   توسيط أزرار تصفية المشاريع
   ============================================= */
#projects-filters {
  display: flex;
  justify-content: center;   /* يوسّط الأزرار أفقيًا */
  align-items: center;       /* يوسّطها عموديًا */
  flex-wrap: wrap;           /* يخليهم ينزلون للسطر الثاني لو المساحة ضاقت */
  gap: 10px;                 /* مسافة بين الأزرار */
  margin-bottom: 30px;
  text-align: center;
}

#projects-filters .filter-btn {
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

#projects-filters .filter-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

#projects-filters .filter-btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


.footer-phones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 10px;
}

.social-link svg {
  width: 22px;
  height: 22px;
  color: white;
  transition: 0.3s;
}

.social-link:hover svg {
  color: var(--primary);
  background: white;
  border-radius: 50%;
  padding: 5px;
}










/* =============================================
   تحسين التجاوب مع الموبايل فقط
   ============================================= */
@media (max-width: 768px) {

  /* ---------- NAVBAR ---------- */
  .nav {
    padding: 10px 16px;
  }

  .logo {
    margin-right: 0;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .logo-sub {
    font-size: 0.7rem;
  }

  .btn-order {
    margin-left: 0;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  /* ---------- HERO ---------- */
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
  }

  /* ---------- SECTIONS ---------- */
  section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* ---------- SERVICES ---------- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* ---------- CATALOG ---------- */
  .materials-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .material-name {
    font-size: 1rem;
  }

  .material-desc {
    font-size: 0.8rem;
  }

  /* ---------- PROJECTS ---------- */
  .projects-grid,
  #projects-grid {
    grid-template-columns: 1fr;
  }

  /* ---------- ABOUT ---------- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-years {
    position: static;
    margin-top: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---------- CONTACT ---------- */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    aspect-ratio: 4 / 3;
  }

  /* ---------- FOOTER ---------- */
  .footer {
    padding: 2.5rem 1rem;
  }

  .footer-title {
    font-size: 1.3rem;
  }

  .footer-link {
    font-size: 0.9rem;
    text-align: center;
  }

  .footer-phones {
    gap: 6px;
  }

  .social-links {
    margin-top: 14px;
  }

  /* ---------- FILTER BUTTONS ---------- */
  .filter-btns,
  #projects-filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}



@media (max-width: 768px) {
  .nav-content {
    display: flex;
    justify-content: space-between; /* توزيع بين الطرفين */
    align-items: center;
    padding: 0 16px;
  }

  .logo {
    margin-right: 0;
  }

  .mobile-menu-btn {
    position: relative;
    right: 0;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-name {
    font-size: 1rem;
  }

  .logo-sub {
    font-size: 0.75rem;
  }


  .nav,
  .nav-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
  }

  .logo {
    margin-right: 0 !important;
  }

  .mobile-menu-btn {
    margin-left: 0 !important;
  }

}
.footer a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
}

.footer a:hover {
  color: white !important;
}

/* عكس موضع الشعار والمنيو في الجوال */
@media (max-width: 768px) {
  .nav,
  .nav-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important; /* يخلي الشعار يسار والمنيو يمين */
    padding: 10px 16px !important;
    width: 100% !important;
  }

  .logo {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 26px !important;
    color: white !important;
  }

  .logo-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .logo-name {
    font-size: 1rem !important;
  }

  .logo-sub {
    font-size: 0.75rem !important;
  }
}


.nav.scrolled .mobile-menu-btn {
   color: var(--primary) !important;
}


/* جعل أزرار الفلترة ثابتة أثناء التمرير */
.filter-btns,
#projects-filters {
  position: sticky;
  top: 100px; /* المسافة تحت النافبار */
  z-index: 900;
   background: rgba(255, 255, 255, 0.65); /* شفافية جميلة */
  backdrop-filter: blur(8px); /* ضبابية خفيفة */
  padding: 10px 0;
  margin-bottom: 1rem;
}


/* عرض عنصرين جنب بعض في الموبايل */
@media (max-width: 768px) {
  .materials-grid,
  .projects-grid,
  #projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .material-card,
  .project-card {
    border-radius: 10px;
  }
}

