/* ========================================
   AL TAWAKAL CO. - MAIN STYLESHEET
   ======================================== */

/* --- FONTS & RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ===== PRIMARY PALETTE: BLACK + RED + WHITE ===== */
  --gold: #E53030;           /* Main accent (vivid red) */
  --gold-light: #FF6B6B;     /* Light red highlight */
  --gold-dark: #B71C1C;      /* Deep crimson */
  --red: #8B0000;            /* Dark background red */
  --red-dark: #5A0000;       /* Very deep red */
  /* Dark mode (default) */
  --dark: #0A0A0A;
  --dark-2: #0F0F0F;
  --dark-3: #161616;
  --dark-4: #1E1E1E;
  --dark-5: #252525;
  --text: #FFFFFF;
  --text-muted: #BBBBBB;
  --text-dim: #777777;
  --border: rgba(229,48,48,0.22);
  --border-subtle: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.04);
  --shadow: 0 4px 30px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(229,48,48,0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-bg: rgba(10,10,10,0.94);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --dark: #F8F8F8;
  --dark-2: #F0F0F0;
  --dark-3: #E8E8E8;
  --dark-4: #DDDDDD;
  --dark-5: #CCCCCC;
  --text: #0A0A0A;
  --text-muted: #444444;
  --text-dim: #888888;
  --border: rgba(183,28,28,0.22);
  --border-subtle: rgba(0,0,0,0.08);
  --glass: rgba(0,0,0,0.03);
  --shadow: 0 4px 30px rgba(0,0,0,0.10);
  --shadow-gold: 0 0 40px rgba(229,48,48,0.18);
  --navbar-bg: rgba(248,248,248,0.96);
}

/* Smooth theme transition on all elements */
*, *::before, *::after {
  transition: background-color 0.4s ease, color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Override transition for motion elements to keep animations smooth */
.hero-title, .btn, .nav-link, .service-card, .product-card,
.particle, .ticker-track, .scroll-down span::after,
.preloader-fill, .logo-circle, .circle-glow {
  transition: var(--transition);
}


html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

html[lang="en"] body { direction: ltr; font-family: 'Inter', 'Cairo', sans-serif; }
html[lang="ar"] body { direction: rtl; font-family: 'Cairo', sans-serif; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== PRELOADER – light mode ===== */
[data-theme="light"] #preloader { background: var(--dark); }

/* --- PRELOADER --- */
#preloader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.logo-circle {
  width: 90px; height: 90px;
  background: transparent;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: #fff;
  margin: 0 auto 1.5rem;
  animation: pulse-glow 1.5s ease-in-out infinite;
  overflow: hidden;
}
.logo-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,48,48,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(229,48,48,0); }
}
.preloader-bar {
  width: 200px; height: 3px;
  background: var(--dark-4);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 2px;
  animation: fill-bar 1.5s ease forwards;
}
@keyframes fill-bar {
  from { width: 0; } to { width: 100%; }
}

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- SECTION --- */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(229,48,48,0.15), rgba(183,28,28,0.1));
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--gold-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- BUTTONS --- */
button, input, select, textarea, .btn {
  font-family: inherit;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative; overflow: hidden;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(229,48,48,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229,48,48,0.45);
}
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  /* No background when at top — hero overlay handles readability */
  background: transparent;
}
[data-theme="light"] #navbar {
  background: transparent;
}
#navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 44px; height: 44px;
  background: transparent;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: white;
  letter-spacing: 0.05em;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ar { font-size: 1rem; font-weight: 700; color: var(--text); }
.logo-en { font-size: 0.7rem; color: var(--gold-light); font-weight: 500; }
#navbar .logo-ar { color: #FFFFFF; }
.nav-links {
  display: flex; list-style: none; gap: 0.2rem;
  align-items: center;
}
.nav-link {
  /* White by default — navbar floats over dark hero */
  color: rgba(240, 237, 232, 0.80);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}
.nav-link:hover::after, .nav-link.active::after {
  left: 0.9rem; right: 0.9rem;
}
.nav-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.lang-btn {
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}
.lang-btn:hover { background: var(--gold); color: #FFFFFF; }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-btn {
  width: 40px; height: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-btn:hover {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 20px rgba(229,48,48,0.4);
}
.theme-btn .icon-moon,
.theme-btn .icon-sun {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
/* entering icon spins in */
[data-theme="light"] .theme-btn .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); display: block !important; }
[data-theme="light"] .theme-btn .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); display: block !important; }
[data-theme="dark"]  .theme-btn .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); display: block !important; }
[data-theme="dark"]  .theme-btn .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); display: block !important; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
  transition: filter 0.4s ease;
}
[data-theme="light"] .hero-img {
  filter: brightness(0.55) saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,13,0.85) 0%,
    rgba(13,13,13,0.6) 50%,
    rgba(183,28,28,0.15) 100%
  );
  transition: background 0.4s ease;
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10,8,5,0.72) 0%,
    rgba(20,15,10,0.55) 55%,
    rgba(140,20,20,0.25) 100%
  );
}
.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: float-particle linear infinite;
  opacity: 0.4;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100px) translateX(50px) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
  max-width: 900px; margin: 0 auto;
  padding-top: 5rem;
  /* Ensure stats don't overlap the scroll-down indicator */
  padding-bottom: 5rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(229,48,48,0.15);
  border: 1px solid rgba(229,48,48,0.3);
  color: var(--gold-light);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease forwards;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fade-up 0.7s ease 0.1s forwards; opacity: 0;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  font-weight: 700;
  display: inline-block;
  background: rgba(229,48,48,0.12);
  border: 1px solid rgba(229,48,48,0.3);
  padding: 0.5rem 1.6rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  animation: fade-up 0.7s ease 0.2s forwards; opacity: 0;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(240,237,232,0.75);
  max-width: 650px;
  margin: 0 auto 2rem;
  animation: fade-up 0.7s ease 0.3s forwards; opacity: 0;
}
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fade-up 0.7s ease 0.4s forwards; opacity: 0;
}
.hero-stats {
  display: flex; gap: 1rem;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  animation: fade-up 0.7s ease 0.5s forwards; opacity: 0;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline;
}
.stat-plus { font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }
.scroll-down {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1;  /* behind stats (z-index 2) so no overlap */
  text-decoration: none;
  pointer-events: none;  /* don't block clicks */
  opacity: 0.75;
}
.scroll-down span {
  display: block; width: 28px; height: 48px;
  border: 2px solid rgba(229,48,48,0.5);
  border-radius: 14px;
  position: relative; margin: 0 auto;
}
.scroll-down span::after {
  content: '';
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 10px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-anim 1.5s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: linear-gradient(135deg, var(--gold-dark), var(--red-dark));
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ticker-track {
  display: flex; gap: 3rem;
  animation: ticker-scroll 25s linear infinite;
  width: max-content;
}
.ticker-track span {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about-section { background: var(--dark-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
html[lang="en"] .about-grid { direction: ltr; }
.about-visual { position: relative; }
.about-img-wrap { position: relative; padding: 2rem; }
.about-logo-display {
  width: 260px; height: 260px;
  margin: 0 auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.logo-circle-lg {
  width: 200px; height: 200px;
  background: transparent;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 900; color: white;
  box-shadow: 0 0 60px rgba(229,48,48,0.3);
  position: relative; z-index: 2;
  overflow: hidden;
}
.logo-circle-lg img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.circle-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(229,48,48,0.2), transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.about-badge-card {
  position: absolute; top: 0; right: 0;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: var(--shadow);
}
html[lang="en"] .about-badge-card { left: 0; right: auto; }
.badge-icon {
  width: 44px; height: 44px;
  background: rgba(229,48,48,0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.badge-text { display: flex; flex-direction: column; }
.badge-text strong { font-size: 0.9rem; color: var(--gold); }
.badge-text span { font-size: 0.78rem; color: var(--text-muted); }
.about-floating-card {
  position: absolute; bottom: 10px; left: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--red-dark));
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow);
  color: #FFFFFF;
}
html[lang="en"] .about-floating-card { right: 0; left: auto; }
.fc-icon { display: flex; align-items: center; justify-content: center; }
.about-text { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-vals { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.val-item {
  display: flex; gap: 1.1rem;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  align-items: flex-start;
  transition: var(--transition);
}
.val-item:hover {
  border-color: var(--border);
  background: rgba(229,48,48,0.05);
}
.val-icon {
  width: 42px; height: 42px;
  background: rgba(229,48,48,0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.val-item strong { display: block; color: var(--gold); margin-bottom: 0.3rem; font-size: 0.95rem; }
.val-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== SERVICES ===== */
.services-section { background: var(--dark-3); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(30px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(229,48,48,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-8px); box-shadow: var(--shadow-gold); }
.service-card:hover::before { opacity: 1; }
.service-icon-wrap {
  width: 65px; height: 65px;
  background: linear-gradient(135deg, rgba(229,48,48,0.15), rgba(183,28,28,0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--gold), var(--red));
  border-color: transparent;
  transform: scale(1.05);
}
.service-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: var(--transition);
}
.service-card:hover .service-icon { color: #FFFFFF; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--text); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ===== PRODUCTS ===== */
.products-section { background: var(--dark-2); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.product-card {
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-gold); }
.product-icon {
  width: 60px; height: 60px;
  background: rgba(229,48,48,0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  transition: var(--transition);
}
.product-card:hover .product-icon {
  background: var(--gold);
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}
.product-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.product-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== WHY US ===== */
.why-section { background: var(--dark-3); }
.why-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}
.why-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #FFFFFF;
}
.why-item h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.why-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.why-visual { display: flex; flex-direction: column; gap: 1.2rem; }
.why-card {
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}
.why-card-offset { margin-top: 1rem; }
.why-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.why-card-number {
  position: absolute; top: 1rem;
  font-size: 2.5rem; font-weight: 900;
  color: rgba(229,48,48,0.08);
  line-height: 1;
}
html[lang="ar"] .why-card-number { right: 1rem; }
html[lang="en"] .why-card-number { left: 1rem; }
.why-card-icon {
  width: 50px; height: 50px;
  background: rgba(229,48,48,0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.why-card:hover .why-card-icon {
  background: var(--gold);
  color: #FFFFFF;
  transform: scale(1.05);
}
.why-card h4 { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.4rem; }
.why-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== TRUST SECTION ===== */
.trust-section { background: linear-gradient(135deg, var(--red-dark), #1A0A00); }
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.trust-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.trust-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-num {
  font-size: 2.8rem; font-weight: 900;
  color: var(--gold-light);
  display: block;
}
.trust-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ===== CONTACT ===== */
.contact-section { background: var(--dark-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-card {
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  display: flex; gap: 1rem; align-items: center;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--border); transform: translateX(-4px); }
html[lang="en"] .contact-card:hover { transform: translateX(4px); }
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(229,48,48,0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-card:hover .contact-icon {
  background: var(--gold);
  color: #FFFFFF;
}
.contact-card h4 { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }
.social-link {
  width: 44px; height: 44px;
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: #FFFFFF; border-color: var(--gold); transform: translateY(-3px); }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239A9490'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.8rem center;
  padding-left: 2.5rem;
}
html[lang="ar"] .form-group select {
  background-position: right 0.8rem center;
  padding-right: 2.5rem; padding-left: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229,48,48,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.map-wrap iframe { display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); }
.footer-top { padding: 4rem 0; border-bottom: 1px solid var(--border-subtle); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }
.footer-links-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-col a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links-col a:hover { color: var(--gold); padding-right: 5px; }
html[lang="en"] .footer-links-col a:hover { padding-left: 5px; padding-right: 0; }
.footer-contact h4 { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.footer-contact-item {
  display: flex; gap: 0.6rem;
  font-size: 0.88rem; color: var(--text-dim);
  margin-bottom: 0.7rem; align-items: center;
}
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  padding: 1.5rem 0; text-align: center;
  font-size: 0.85rem; color: var(--text-dim);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  z-index: 999;
  transition: var(--transition);
  animation: whatsapp-bounce 2s ease-in-out infinite;
}
html[lang="ar"] .whatsapp-float { left: 2rem; }
html[lang="en"] .whatsapp-float { right: 2rem; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed; top: 2rem; right: 2rem;
  background: var(--dark-4);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-gold);
  max-width: 320px;
}
html[lang="ar"] .toast { left: 2rem; right: auto; transform: translateX(-150%); }
.toast.show { transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid, .why-inner, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual { display: grid; grid-template-columns: repeat(3,1fr); }
  .why-card-offset { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; inset: 0; top: 70px;
    background: rgba(10,10,10,0.98);
    padding: 1.5rem; z-index: 999;
    justify-content: flex-start; gap: 0.3rem;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: flex; }

  /* Hero */
  .hero-content { padding: 0 1rem; padding-top: 4rem; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .hero-btns { gap: 0.75rem; margin-bottom: 2rem; }
  .hero-btns .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

  /* Stats — 3 columns side by side (compact) */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 1rem 0.75rem;
  }
  .stat { padding: 0.5rem 0.25rem; }
  .stat-num { font-size: 1.8rem; }
  .stat-plus { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
  .stat-divider { display: none; }

  /* Sections */
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: 1fr; }
  .why-visual { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; }
  .trust-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .trust-stat-num { font-size: 2.5rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 85%; text-align: center; justify-content: center; }
  /* Extra compact stats on very small screens */
  .hero-stats { padding: 0.75rem 0.5rem; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.68rem; }
  /* Thin red line separators between stats */
  .stat:not(:last-child) {
    border-inline-end: 1px solid rgba(229,48,48,0.25);
  }
}

/* ===== LIGHT MODE SPECIFIC OVERRIDES ===== */

/* --- Hero: keep text WHITE (overlay is still dark enough) --- */
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-desc {
  color: rgba(240,237,232,0.82);
}
[data-theme="light"] .hero-subtitle {
  color: var(--gold-light);
}
[data-theme="light"] .hero-badge {
  background: rgba(229,48,48,0.18);
  border-color: rgba(229,48,48,0.35);
  color: var(--gold-light);
}
[data-theme="light"] .hero-stats {
  background: rgba(20,16,10,0.55);
  border-color: rgba(229,48,48,0.3);
  backdrop-filter: blur(16px);
}
[data-theme="light"] .hero-stats .stat-label {
  color: rgba(240,237,232,0.7);
}

/* --- Navbar in light mode --- */
/* Unscrolled: keep white text (still over dark hero image) */
[data-theme="light"] #navbar:not(.scrolled) .logo-ar { color: #fff; }
[data-theme="light"] #navbar:not(.scrolled) .logo-en { color: var(--gold-light); }
[data-theme="light"] #navbar:not(.scrolled) .nav-link { color: rgba(240,237,232,0.82); }
[data-theme="light"] #navbar:not(.scrolled) .lang-btn { color: var(--gold-light); border-color: rgba(229,48,48,0.35); background: rgba(0,0,0,0.2); }
[data-theme="light"] #navbar:not(.scrolled) .theme-btn { color: var(--gold-light); border-color: rgba(229,48,48,0.35); background: rgba(0,0,0,0.2); }
[data-theme="light"] #navbar:not(.scrolled) .menu-btn span { background: #fff; }

/* Scrolled: dark text on light background */
[data-theme="light"] #navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
[data-theme="light"] #navbar.scrolled .logo-ar { color: var(--text); }
[data-theme="light"] #navbar.scrolled .logo-en { color: var(--gold-dark); }
[data-theme="light"] #navbar.scrolled .nav-link { color: var(--text-muted); }
[data-theme="light"] #navbar.scrolled .nav-link:hover,
[data-theme="light"] #navbar.scrolled .nav-link.active { color: var(--gold-dark); }
[data-theme="light"] #navbar.scrolled .lang-btn { background: rgba(183,28,28,0.12); border-color: rgba(183,28,28,0.3); color: var(--gold-dark); }
[data-theme="light"] #navbar.scrolled .lang-btn:hover { background: var(--gold-dark); color: #fff; }
[data-theme="light"] #navbar.scrolled .theme-btn { background: rgba(183,28,28,0.1); border-color: rgba(183,28,28,0.25); color: var(--gold-dark); }
[data-theme="light"] #navbar.scrolled .theme-btn:hover { background: var(--gold-dark); color: #fff; }
[data-theme="light"] #navbar.scrolled .menu-btn span { background: var(--text); }

/* Mobile menu background only (not desktop) */
[data-theme="light"] .nav-links.open { background: rgba(248,248,248,0.98) !important; }
[data-theme="light"] .nav-links.open .nav-link { color: var(--text-muted) !important; }
[data-theme="light"] .nav-links.open .nav-link:hover,
[data-theme="light"] .nav-links.open .nav-link.active { color: var(--gold-dark) !important; }

/* --- Section titles in light mode --- */
[data-theme="light"] .section-title {
  background: linear-gradient(135deg, #0A0A0A 20%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- Cards & services in light mode --- */
[data-theme="light"] .service-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
[data-theme="light"] .service-card:hover {
  border-color: var(--gold-dark);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 32px rgba(183,28,28,0.18);
}
[data-theme="light"] .service-card h3 { color: var(--text); }
[data-theme="light"] .service-card p { color: var(--text-muted); }
[data-theme="light"] .service-icon-wrap {
  background: linear-gradient(135deg, rgba(183,28,28,0.12), rgba(127,0,0,0.08));
  border-color: rgba(183,28,28,0.2);
}
[data-theme="light"] .service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--gold-dark), var(--red-dark));
}
[data-theme="light"] .product-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .product-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 28px rgba(183,28,28,0.15);
}
[data-theme="light"] .why-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .why-card:hover { border-color: var(--gold-dark); }
[data-theme="light"] .why-card h4 { color: var(--gold-dark); }
[data-theme="light"] .why-check {
  background: linear-gradient(135deg, var(--gold-dark), #991212);
}
[data-theme="light"] .contact-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .contact-icon { filter: none; }
[data-theme="light"] .val-item {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .section-tag {
  background: linear-gradient(135deg, rgba(183,28,28,0.12), rgba(127,0,0,0.07));
  border-color: rgba(183,28,28,0.25);
  color: var(--gold-dark);
}
[data-theme="light"] .about-badge-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(183,28,28,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .about-floating-card {
  background: linear-gradient(135deg, var(--gold-dark), var(--red-dark));
}

/* --- Trust section stays dark --- */
[data-theme="light"] .trust-section {
  background: linear-gradient(135deg, #8B0000, #3A0000);
}
/* Trust section text always white (dark red bg) */
[data-theme="light"] .trust-text h2,
[data-theme="light"] .trust-text p,
[data-theme="light"] .trust-num,
[data-theme="light"] .trust-label,
.trust-section .trust-text h2,
.trust-section .trust-text p,
.trust-section .trust-num,
.trust-section .trust-label {
  color: #FFFFFF !important;
}
[data-theme="light"] .trust-num { color: var(--gold-light) !important; }

/* --- Ticker stays dark --- */
[data-theme="light"] .ticker-wrap {
  background: linear-gradient(135deg, #7A0000, #5A0000);
}

/* --- Footer --- */
[data-theme="light"] .footer {
  background: #D8D4CD;
}
[data-theme="light"] .footer-top {
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .footer-links-col a:hover {
  color: var(--gold-dark);
}

/* --- Scroll indicator --- */
[data-theme="light"] .scroll-down span {
  border-color: rgba(229,48,48,0.6);
}

/* --- Form fields --- */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #fff;
  color: var(--text);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(183,28,28,0.12);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #AAA49E;
}
[data-theme="light"] .form-group label { color: var(--gold-dark); }

/* --- Social buttons in light mode --- */
[data-theme="light"] .social-link {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-muted);
}
[data-theme="light"] .social-link:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
}

/* --- Map border --- */
[data-theme="light"] .map-wrap {
  border-color: rgba(0,0,0,0.1);
}

/* --- Scrollbar --- */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--dark-3); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--gold-dark); }

/* --- Toast --- */
[data-theme="light"] .toast {
  background: #fff;
  border-color: var(--gold-dark);
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* ===== WHITE TEXT ON DARK/RED BACKGROUNDS (both modes) ===== */
/* Buttons always have white text since they have red/dark backgrounds */
.btn-primary,
.btn-primary:hover { color: #FFFFFF !important; }

.btn-outline:hover,
.lang-btn:hover,
.theme-btn:hover { color: #FFFFFF !important; }

/* Why-check circle (red bg) */
.why-check { color: #FFFFFF !important; }

/* Trust section stats always white (dark red background) */
.trust-stat-num,
.trust-stat-label,
.trust-title,
.trust-desc,
.trust-item { color: #FFFFFF !important; }

/* Ticker text always white (dark red background) */
.ticker-track span { color: rgba(255,255,255,0.9) !important; }

/* About floating card (dark red gradient bg) */
.about-floating-card,
.about-floating-card * { color: #FFFFFF !important; }

/* Logo mark (AT badge) always white */
.logo-mark { color: #FFFFFF !important; }

/* Light mode btn hover overrides */
[data-theme="light"] .btn-primary { color: #FFFFFF !important; }
[data-theme="light"] .btn-outline:hover { color: #FFFFFF !important; }
[data-theme="light"] #navbar.scrolled .lang-btn:hover { color: #FFFFFF !important; }
[data-theme="light"] #navbar.scrolled .theme-btn:hover { color: #FFFFFF !important; }

/* Footer text in light mode (solid black #0A0A0A matching navbar logo text) */
[data-theme="light"] .footer-logo-ar,
[data-theme="light"] .footer .logo-ar,
[data-theme="light"] .footer .footer-logo-ar,
[data-theme="light"] .footer .logo-text .logo-ar,
[data-theme="light"] .footer .logo-text span,
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-desc,
[data-theme="light"] .footer-links-col a,
[data-theme="light"] .footer-contact-item,
[data-theme="light"] .footer-contact-item span,
[data-theme="light"] .footer-contact p,
[data-theme="light"] .footer-bottom,
[data-theme="light"] .footer-bottom p {
  color: #0A0A0A !important;
  opacity: 1 !important;
}

[data-theme="light"] .footer-logo-en,
[data-theme="light"] .footer .logo-en,
[data-theme="light"] .footer .footer-logo-en { color: var(--gold-dark) !important; }
[data-theme="light"] .footer-links-col h4,
[data-theme="light"] .footer-contact h4 { color: var(--gold-dark) !important; }
[data-theme="light"] .footer-links-col a:hover { color: var(--gold-dark) !important; }

/* ========================================
   FACTORIES & FACTORY PAGES STYLES
   ======================================== */

.factories-section {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.factories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.factory-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.factory-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(229,48,48,0.2);
}

.factory-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

html[lang="en"] .factory-badge {
  right: auto;
  left: 12px;
}

.factory-img-box {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  border: 1px solid var(--border);
  background: var(--dark-4);
}

.factory-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.factory-card:hover .factory-card-img {
  transform: scale(1.08);
}

.factory-about-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-gold);
}

.badge-mini-img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
}

.factory-icon-box {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, rgba(229,48,48,0.15), rgba(183,28,28,0.08));
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.factory-card:hover .factory-icon-box {
  background: linear-gradient(135deg, var(--gold), var(--red));
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 8px 20px rgba(229,48,48,0.3);
}

.factory-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.factory-content p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.factory-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.factory-features span {
  font-size: 0.82rem;
  background: var(--dark-4);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.factory-btn {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
}

/* Factory Sub-page Styles */
.factory-hero {
  position: relative;
  padding: 160px 0 90px;
  background: linear-gradient(135deg, var(--dark), var(--dark-3));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.factory-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(229,48,48,0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.factory-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.factory-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(229,48,48,0.18), rgba(183,28,28,0.12));
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.factory-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  color: var(--text);
}

.factory-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.factory-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.factory-hero-stat-item {
  text-align: center;
}

.factory-hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.factory-hero-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.factory-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.factory-spec-card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  transition: var(--transition);
}

.factory-spec-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.factory-spec-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.factory-spec-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.factory-spec-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.back-to-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.back-to-main:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

html[lang="en"] .back-to-main:hover {
  transform: translateX(4px);
}


