/* ============================================================
   SILMAS Mining - Main Stylesheet
   Brand: Gold (#8B6914), Gray (#808080), Dark (#1a1a1a)
   ============================================================ */

/* ── Custom Fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'FuturaPT';
  src: url('/fonts/FuturaPTMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GESSTwo';
  src: url('/fonts/GESSTwo-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:        #8B6914;
  --primary-light:  #C4A84B;
  --primary-dark:   #5a4309;
  --primary-alpha:  rgba(139, 105, 20, 0.15);
  --gray:           #808080;
  --gray-light:     #e0e0e0;
  --gray-dark:      #4a4a4a;
  --dark:           #1a1a1a;
  --darker:         #111111;
  --white:          #ffffff;
  --off-white:      #f8f6f0;

  --bg:             #ffffff;
  --bg-alt:         #f8f6f0;
  --bg-card:        #ffffff;
  --text:           #1a1a1a;
  --text-muted:     #6c757d;
  --border:         #e0e0e0;
  --shadow:         rgba(0,0,0,0.08);
  --shadow-hover:   rgba(139, 105, 20, 0.25);

  --navbar-bg:      transparent;
  --navbar-scrolled:#1a1a1a;
  --footer-bg:      #111111;

  --radius:         8px;
  --radius-lg:      16px;
  --transition:     all 0.35s ease;
  --font-ar:        'GESSTwo', 'Tajawal', 'Cairo', sans-serif;
  --font-en:        'FuturaPT', 'Segoe UI', sans-serif;
}

/* ── Dark Mode ─────────────────────────────────────────── */
body.dark-mode {
  --bg:         #121212;
  --bg-alt:     #1e1e1e;
  --bg-card:    #1e1e1e;
  --text:       #e8e8e8;
  --text-muted: #9e9e9e;
  --border:     #333333;
  --shadow:     rgba(0,0,0,0.4);
  --off-white:  #1e1e1e;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

body.rtl {
  direction: rtl;
  text-align: right;
  font-family: var(--font-ar);
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

.section-gap { padding: 90px 0; }
.bg-alt { background: var(--bg-alt); }

/* ── Section Titles ────────────────────────────────────── */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.section-title span { color: var(--primary); }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin: 0.75rem auto 1.25rem;
}
.rtl .title-line { margin: 0.75rem 0 1.25rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-hover);
  color: var(--white);
}

.btn-outline-gold {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 0.6rem 1.65rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline-gold:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNavbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  transition: var(--transition);
  padding: 1.1rem 0;
  background: transparent;
}
#mainNavbar.scrolled {
  background: var(--navbar-scrolled);
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Navbar logo image */
.navbar-logo {
  height: 90px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: var(--transition);
  /* Keep logo visible on transparent navbar via drop-shadow */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
#mainNavbar.scrolled .navbar-logo {
  height: 70px;
}

/* Legacy text brand (kept as fallback) */
.navbar-brand-text {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(196,168,75,0.4);
}
.navbar-brand-sub {
  font-size: 0.65rem;
  color: #aaa;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem !important;
  transition: var(--transition);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary-light);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 70%; }
.navbar-nav .nav-link:hover { color: var(--primary-light) !important; }

/* Portal dropdown */
.navbar .dropdown-menu {
  background: #1a1a1a;
  border: 1px solid var(--primary-dark);
  border-radius: var(--radius);
  min-width: 180px;
  animation: fadeDown 0.25s ease;
}
.navbar .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  transition: var(--transition);
}
.navbar .dropdown-item:hover {
  background: var(--primary-alpha);
  color: var(--primary-light);
}
.navbar .dropdown-item i { margin-inline-end: 0.4rem; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav controls */
.nav-controls { display: flex; align-items: center; gap: 0.5rem; }

.btn-nav-icon {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}
.btn-nav-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-lang {
  background: rgba(139,105,20,0.2);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-lang:hover { background: var(--primary); color: #fff; }

/* System Login button in navbar */
.nav-login-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 0.4rem 1.2rem !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: 0.5rem;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-login-btn::after { display: none !important; } /* إزالة الخط السفلي */
.nav-login-btn:hover {
  background: transparent !important;
  border-color: var(--primary-light) !important;
  color: var(--primary-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-hover);
}

/* Hamburger */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 0.6rem;
}
.navbar-toggler-icon { filter: invert(1); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
#heroSlider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slides { width: 100%; height: 100%; position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(139,105,20,0.2) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  animation: heroContentIn 1s ease 0.3s both;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Slider arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(139,105,20,0.5);
  border: 2px solid rgba(196,168,75,0.5);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active {
  background: var(--primary-light);
  transform: scale(1.4);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.about-image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.about-image-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  line-height: 0;
  z-index: 2;
}
.about-image-badge .iso-badge-img {
  width: 80px  !important;
  height: 80px !important;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.about-text { padding-inline-start: 2.5rem; }
.rtl .about-text { padding-inline-start: 0; padding-inline-end: 2.5rem; }

.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Stats */
.stats-row { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }

.stat-card {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow-hover);
  border-color: var(--primary);
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  transition: height 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow-hover); }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 70px; height: 70px;
  background: var(--primary-alpha);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-icon i { font-size: 1.75rem; color: var(--primary); transition: var(--transition); }
.service-card:hover .service-icon { background: var(--primary); }
.service-card:hover .service-icon i { color: #fff; }

.service-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */

/* Background image with dark overlay */
.products-bg-section {
  position: relative;
  background-image: url('/images/products-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.products-bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 3, 0.52);
  z-index: 0;
}
.products-bg-section > .container {
  position: relative;
  z-index: 1;
}
/* Adjust text colors on dark background */
.products-bg-section .section-title,
.products-bg-section .section-subtitle,
.products-bg-section p { color: rgba(255,255,255,0.9); }
.products-bg-section .section-title span { color: var(--primary-light); }

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow-hover); }

.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.product-card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-alpha), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
}
.product-card-img-placeholder i { font-size: 3rem; color: var(--primary); opacity: 0.5; }

.product-card-body { padding: 1.5rem; }

.product-category {
  display: inline-block;
  background: var(--primary-alpha);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.product-card-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   COVERED SECTORS SECTION
   ============================================================ */
.sectors-section {
  background: #1e1a0f;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%,   rgba(196,168,75,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%,  rgba(139,105,20,0.07) 0%, transparent 70%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle gold dot pattern overlay */
.sectors-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(196,168,75,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.sectors-top-bar,
.sectors-bottom-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #8B6914 20%, #C4A84B 50%, #8B6914 80%, transparent 100%);
}


.sectors-header {
  padding: 70px 0 50px;
}

/* Override section-title & subtitle colours for dark bg */
.sectors-header .section-title {
  color: #f5f0e8;
}
.sectors-header .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}
.sectors-header .title-line {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(196, 168, 75, 0.15);
  border-top: 1px solid rgba(196, 168, 75, 0.15);
  margin-bottom: 0;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 2rem 1.8rem;
  border-right: 1px solid rgba(196, 168, 75, 0.15);
  border-bottom: 1px solid rgba(196, 168, 75, 0.15);
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}
.sector-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,168,75,0.07), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sector-item:hover { background: rgba(196, 168, 75, 0.06); }
.sector-item:hover::before { opacity: 1; }
.sector-item:hover .sector-icon-wrap {
  color: var(--primary-light);
  transform: scale(1.18);
}
.sector-item:hover .sector-en { color: var(--primary-light); }

.sector-icon-wrap {
  font-size: 2rem;
  color: #C4A84B;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.sector-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sector-en {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0ead8;
  letter-spacing: 0.3px;
  line-height: 1.25;
  transition: color 0.3s ease;
}
.sector-ar {
  font-size: 0.88rem;
  color: rgba(196, 168, 75, 0.75);
  font-family: var(--font-ar);
  line-height: 1.3;
}

/* Responsive grid */
@media (max-width: 1199.98px) {
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-item  { padding: 1.5rem 1.2rem; gap: 0.8rem; }
  .sector-icon-wrap { font-size: 1.6rem; }
  .sector-en { font-size: 0.95rem; }
}
@media (max-width: 479.98px) {
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow-hover); }

.project-card-img-wrap { position: relative; overflow: hidden; }
.project-card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.project-card:hover .project-card-img { transform: scale(1.08); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.project-card-year {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
}
.rtl .project-card-year { right: auto; left: 15px; }

.project-card-body { padding: 1.4rem; }
.project-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.project-card-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.project-location { font-size: 0.82rem; color: var(--primary); }
.project-location i { margin-inline-end: 0.3rem; }

/* ============================================================
   VISION & MISSION SECTION
   ============================================================ */
#vision { background: var(--bg-alt); }

.vision-card, .mission-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
  overflow: hidden;
}
.vision-card::after, .mission-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.vm-icon {
  width: 75px; height: 75px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.vm-icon i { font-size: 2rem; color: #fff; }

.vision-card h3, .mission-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.vision-card p, .mission-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.values-list li {
  background: var(--primary-alpha);
  color: var(--primary);
  border: 1px solid rgba(139,105,20,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================================================
   CLIENTS SECTION
   ============================================================ */

/* ── Dark background with gold dot pattern ── */
.clients-section {
  position: relative;
  background-color: #1c1710;
  background-image:
    radial-gradient(circle, rgba(196,168,75,0.45) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  overflow: hidden;
}

/* Gold glow top & bottom borders */
.clients-section::before,
.clients-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 30%,
    var(--primary-light) 50%,
    var(--primary) 70%,
    transparent 100%);
}
.clients-section::before { top: 0; }
.clients-section::after  { bottom: 0; }

/* Override text colors on dark background */
.clients-section .section-title       { color: #fff; }
.clients-section .section-title span  { color: var(--primary-light); }
.clients-section [style*="color:var(--primary)"] { color: var(--primary-light) !important; }

/* Fade masks on carousel edges */
.clients-track-wrap {
  overflow: hidden;
  position: relative;
}
.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.clients-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0f0d08, transparent);
}
.clients-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0f0d08, transparent);
}

.clients-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  /* Animation is handled entirely by JS RAF — no CSS animation here */
}
/* Pause on hover is handled by JS, but keep cursor hint */
.clients-track:hover { cursor: default; }

/* ── Client card ── */
.client-logo-item {
  flex-shrink: 0;
  width: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,168,75,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
/* Gold top border accent */
.client-logo-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.client-logo-item:hover {
  background: rgba(196,168,75,0.1);
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139,105,20,0.35);
}
.client-logo-item:hover::before { opacity: 1; }

/* Logo image area */
.client-logo-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo-item img {
  max-height: 70px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.75;
  transition: var(--transition);
}
.client-logo-item:hover img {
  opacity: 1;
}

/* Fallback icon (no logo) */
.client-no-logo-icon {
  font-size: 2.2rem;
  color: rgba(196,168,75,0.5);
  transition: var(--transition);
}
.client-logo-item:hover .client-no-logo-icon { color: var(--primary-light); }

/* Client name */
.client-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: var(--transition);
  border-top: 1px solid rgba(196,168,75,0.15);
  padding-top: 0.6rem;
  width: 100%;
}
.client-logo-item:hover .client-name { color: var(--primary-light); }

/* ============================================================
   TEAM SECTION
   ============================================================ */
#team { background: var(--bg-alt); }

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow-hover); }

.team-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.team-card-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: var(--bg-card);
  display: block;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-img { transform: scale(1.04); }

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139,105,20,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
}
.team-card:hover .team-card-overlay { opacity: 1; }
.team-card-overlay a {
  color: #fff;
  font-size: 1.2rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.team-card-overlay a:hover { background: var(--white); color: var(--primary); }

.team-card-body { padding: 1.4rem 1.2rem; }
.team-card-body h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.team-card-body .position {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info-card {
  background: linear-gradient(135deg, var(--dark), #2a1f05);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  color: #fff;
}
.contact-info-card h4 { color: var(--primary-light); font-weight: 700; margin-bottom: 2rem; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(139,105,20,0.25);
  border: 1px solid rgba(196,168,75,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon i { color: var(--primary-light); font-size: 1rem; }
.contact-info-text { font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.contact-info-text strong { display: block; color: #fff; margin-bottom: 0.15rem; }

.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid var(--border);
}
.contact-form-card h4 { font-weight: 700; color: var(--text); margin-bottom: 1.75rem; }

.form-control, .form-select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,105,20,0.15);
  background: var(--bg-card);
  color: var(--text);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: 0 8px 30px var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

/* Footer logo image */
.footer-logo {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  /* White/light version effect on dark footer */
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.footer-brand .navbar-brand-text { font-size: 2rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  color: var(--primary-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--primary);
}
.rtl .footer-heading::after { left: auto; right: 0; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a::before { content: '›'; color: var(--primary); font-size: 1rem; }
.footer-links a:hover { color: var(--primary-light); padding-inline-start: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item i { color: var(--primary-light); margin-top: 2px; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.silmas-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: toastIn 0.4s ease;
  max-width: 340px;
}
.rtl .silmas-toast { right: auto; left: 2rem; }
.silmas-toast.success { background: linear-gradient(135deg, #16a34a, #22c55e); }
.silmas-toast.error   { background: linear-gradient(135deg, #dc2626, #ef4444); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HONEYPOT ANTI-SPAM FIELD (invisible to real users)
   ============================================================ */
.hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
#scrollTopBtn.visible { opacity: 1; pointer-events: auto; }
#scrollTopBtn:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-wrapper {
  font-family: var(--font-en);
}
.admin-wrapper.rtl {
  font-family: var(--font-ar);
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}
body.dark-mode .admin-wrapper { background: #0d0d0d; }

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: #1a1a1a;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.rtl .admin-sidebar { left: auto; right: 0; }

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.sidebar-logo-link { display: block; }
.sidebar-logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  /* Invert to white on dark sidebar */
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.sidebar-logo:hover { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg); opacity: 0.9; }
.sidebar-brand .brand-text { font-size: 1.5rem; font-weight: 800; color: var(--primary-light); letter-spacing: 1.5px; }
.sidebar-brand .brand-sub  { font-size: 0.65rem; color: #888; letter-spacing: 1px; text-transform: uppercase; margin-top: 0.4rem; display: block; }

.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav-label {
  font-size: 0.68rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.75rem 1.25rem 0.35rem;
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.rtl .sidebar-link { border-left: none; border-right: 3px solid transparent; }
.sidebar-link i { width: 20px; text-align: center; color: #888; transition: var(--transition); font-size: 0.95rem; }
.sidebar-link:hover, .sidebar-link.active {
  color: var(--primary-light);
  background: rgba(139,105,20,0.12);
  border-left-color: var(--primary);
}
.rtl .sidebar-link:hover, .rtl .sidebar-link.active { border-left-color: transparent; border-right-color: var(--primary); }
.sidebar-link:hover i, .sidebar-link.active i { color: var(--primary-light); }

/* Admin main */
.admin-main {
  margin-inline-start: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
body.dark-mode .admin-topbar { background: #1e1e1e; border-color: #333; }

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.topbar-user { display: flex; align-items: center; gap: 0.75rem; }
.topbar-user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.topbar-user-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* Admin content */
.admin-content { padding: 2rem; flex: 1; }

/* Stat cards */
.admin-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 15px var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--shadow-hover); }
.admin-stat-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.admin-stat-icon.gold    { background: rgba(139,105,20,0.15); color: var(--primary); }
.admin-stat-icon.blue    { background: rgba(59,130,246,0.12); color: #3b82f6; }
.admin-stat-icon.green   { background: rgba(34,197,94,0.12);  color: #22c55e; }
.admin-stat-icon.red     { background: rgba(239,68,68,0.12);  color: #ef4444; }
.admin-stat-icon.purple  { background: rgba(168,85,247,0.12); color: #a855f7; }
.admin-stat-icon.teal    { background: rgba( 20,184,166,0.15); color: #14b8a6; }
.visitor-stat { border-left: 3px solid var(--primary-light); }
.admin-stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.admin-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Tables */
.admin-table-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 15px var(--shadow);
  overflow: hidden;
}
.admin-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-table-header h6 { font-weight: 700; color: var(--text); margin: 0; }

.table { margin: 0; color: var(--text); }
.table th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-color: var(--border);
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
}
.table td {
  border-color: var(--border);
  padding: 0.85rem 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
}
.table tbody tr:hover { background: var(--primary-alpha); }

/* Admin forms */
.admin-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 15px var(--shadow);
}
.admin-form-card .form-label { font-weight: 600; font-size: 0.875rem; color: var(--text); }

/* Badge */
.badge-active   { background: rgba(34,197,94,0.12);  color: #16a34a; padding: 0.3rem 0.65rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-inactive { background: rgba(239,68,68,0.12);  color: #dc2626; padding: 0.3rem 0.65rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-unread   { background: rgba(59,130,246,0.12); color: #2563eb; padding: 0.3rem 0.65rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .about-text { padding-inline-start: 0; margin-top: 2rem; }
  .rtl .about-text { padding-inline-end: 0; }

  /* About image — show full image on mobile, no side crops */
  .about-image-wrap img {
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: transparent;
  }
  .about-image-wrap {
    max-width: 520px;
    margin-inline: auto;
  }
  .admin-sidebar { transform: translateX(-100%); }
  .rtl .admin-sidebar { transform: translateX(100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-inline-start: 0; }
  .section-title { font-size: 1.8rem; }

  /* ── Mobile Navbar ─────────────────────────────────────── */

  /* Navbar goes dark when mobile menu is open */
  #mainNavbar.menu-open {
    background: rgba(10, 6, 1, 0.98) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  }

  /* Collapsed panel: solid dark card below the navbar */
  #navbarCollapse {
    background: rgba(10, 6, 1, 0.97);
    border-top: 2px solid rgba(196, 168, 75, 0.35);
    border-radius: 0 0 14px 14px;
    padding: 0.5rem 0.75rem 1.25rem;
    margin-top: 0.4rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  }

  /* Nav links: taller tap targets, subtle separator */
  .navbar-nav .nav-link {
    padding: 0.7rem 0.9rem !important;
    font-size: 0.93rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    margin: 1px 0;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .navbar-nav .nav-link:last-child { border-bottom: none; }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(139, 105, 20, 0.18);
    color: var(--primary-light) !important;
  }
  /* Remove the underline bar animation on mobile */
  .navbar-nav .nav-link::after { display: none !important; }

  /* Login button — full width, centred */
  .nav-login-btn {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 0.6rem !important;
    border-radius: 8px !important;
  }

  /* Nav-controls row (lang switch + dark mode) — centred */
  .nav-controls {
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.85rem;
    margin-top: 0.5rem;
    gap: 0.6rem;
  }

  /* Slightly smaller logo on mobile */
  .navbar-logo            { height: 68px; }
  #mainNavbar.scrolled .navbar-logo { height: 52px; }
}

@media (max-width: 767.98px) {
  .section-gap { padding: 60px 0; }
  .hero-arrow { width: 38px; height: 38px; font-size: 0.9rem; }
  .stats-row { gap: 0.75rem; }
  .stat-card { min-width: 100px; }
  .contact-info-card, .contact-form-card { padding: 1.5rem; }
  .admin-content { padding: 1rem; }

  /* About image — small phones */
  .about-image-wrap img {
    max-height: 320px;
  }
  .about-image-badge .iso-badge-img {
    width: 60px  !important;
    height: 60px !important;
  }
}
