/* ======================================================
   MadCo shared styles — reusable across all pages
   Themes: dark (default) / light  |  RTL ready
   ====================================================== */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F19;
  --bg-soft: rgba(255, 255, 255, 0.02);
  --card: #0F172A;
  --card-soft: rgba(255, 255, 255, 0.05);
  --card-soft-2: rgba(255, 255, 255, 0.03);
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --text-dim: #475569;
  --border: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-brand: rgba(99, 102, 241, 0.15);
  --navbar-bg: rgba(11, 15, 25, 0.85);
  --navbar-shadow: none;
  --hover: rgba(255, 255, 255, 0.1);
  --accent-text: #818CF8;
  --shadow-card: 0 25px 80px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F8FC;
  --bg-soft: rgba(15, 23, 42, 0.03);
  --card: #FFFFFF;
  --card-soft: rgba(15, 23, 42, 0.06);
  --card-soft-2: rgba(255, 255, 255, 0.9);
  --text: #0F172A;
  --text-muted: #3E4A61;
  --text-faint: #556175;
  --text-dim: #6B7A90;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-brand: rgba(79, 70, 229, 0.28);
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --navbar-shadow: 0 1px 12px rgba(15, 23, 42, 0.1);
  --hover: rgba(15, 23, 42, 0.09);
  --accent-text: #4F46E5;
  --shadow-card: 0 25px 60px rgba(15, 23, 42, 0.2);
  --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.14);
}

/* ---------- BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

[dir="rtl"] body { font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.arrow { display: inline-block; transition: transform 0.2s; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-brand);
  box-shadow: var(--navbar-shadow);
}
.navbar .container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
}
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.logo-text span { color: var(--accent-text); }
[dir="rtl"] .logo-text { letter-spacing: 0; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--card-soft); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background 0.2s; line-height: 1;
}
.theme-btn:hover { background: var(--hover); }
.lang-select {
  background: var(--card-soft); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 6px 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; outline: none;
}
.lang-select option { background: var(--card); color: var(--text); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 22px; line-height: 1; }
.mobile-menu { display: none; padding: 16px 24px; border-top: 1px solid var(--border-brand); flex-direction: column; gap: 12px; }
.mobile-menu a { color: var(--text-muted); font-size: 15px; padding: 8px 0; display: block; }
.mobile-menu a:hover { color: var(--text); }

/* ---------- HERO ---------- */
.hero { padding-top: 140px; padding-bottom: 100px; position: relative; overflow: hidden; }
.hero .blob1 { position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%); filter: blur(60px); }
.hero .blob2 { position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%); filter: blur(60px); }
.hero .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99, 102, 241, 0.1); border: 1px solid var(--border-brand); border-radius: 999px; padding: 6px 16px; margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: pulse 2s infinite; }
.badge-text { font-size: 12px; font-weight: 600; color: var(--accent-text); letter-spacing: 0.5px; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin: 0 0 20px 0; }
[dir="rtl"] .hero h1 { letter-spacing: 0; }
.hero h1 .gradient { background: linear-gradient(135deg, #6366F1, #C084FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .hero h1 .gradient { background: linear-gradient(135deg, #4F46E5, #9333EA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text-muted); line-height: 1.7; margin: 0 0 32px 0; max-width: 480px; }
.hero-strong { color: var(--text); }
.hero .btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3); transition: transform 0.2s; display: inline-block; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: var(--card-soft); color: var(--text); padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--border-strong); transition: all 0.2s; display: inline-block; }
.btn-secondary:hover { background: var(--hover); }
.hero-visual { position: relative; }
.hero-card { background: linear-gradient(135deg, #1E1B4B, #312E81); border-radius: 24px; padding: 32px; border: 1px solid rgba(99, 102, 241, 0.2); box-shadow: var(--shadow-card); position: relative; z-index: 2; }
[data-theme="light"] .hero-card { background: linear-gradient(135deg, #FFFFFF, #E9EBFB); border-color: rgba(79, 70, 229, 0.25); }
[data-theme="light"] .hero-card-item { background: #FFFFFF; border-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .hero-card-shadow { opacity: 0.22; }
.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #22C55E; }
.hero-card-url { font-size: 12px; color: var(--accent-text); font-family: monospace; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card-item { background: var(--card-soft-2); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.hero-card-item .icon { font-size: 24px; margin-bottom: 8px; }
.hero-card-item .title { font-size: 13px; font-weight: 600; color: var(--text); }
.hero-card-item .subtitle { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.hero-card-shadow { position: absolute; top: 20px; right: -20px; width: 100%; height: 100%; background: linear-gradient(135deg, #8B5CF6, #6366F1); border-radius: 24px; opacity: 0.3; z-index: 1; transform: rotate(3deg); }
[dir="rtl"] .hero-card-shadow { right: auto; left: -20px; }

/* ---------- STATS ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats .container { max-width: 1280px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #6366F1, #C084FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .stat-number { background: linear-gradient(135deg, #4F46E5, #9333EA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* ---------- SECTIONS COMMON ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-bottom: 16px; }
[dir="rtl"] .section-tag { letter-spacing: 0; }
.section-tag-indigo { background: rgba(99, 102, 241, 0.1); color: var(--accent-text); }
.section-tag-green { background: rgba(34, 197, 94, 0.1); color: #4ADE80; }
[data-theme="light"] .section-tag-green { color: #16A34A; }
.section-tag-amber { background: rgba(245, 158, 11, 0.1); color: #FBBF24; }
[data-theme="light"] .section-tag-amber { color: #D97706; }
.section-tag-sky { background: rgba(56, 189, 248, 0.1); color: #38BDF8; }
[data-theme="light"] .section-tag-sky { color: #0284C7; }
.section-title { font-size: 40px; font-weight: 800; margin: 0 0 16px 0; letter-spacing: -1px; }
[dir="rtl"] .section-title { letter-spacing: 0; }
.section-desc { color: var(--text-faint); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---------- SOFTWARE ---------- */
.software-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.software-card { border-radius: 20px; padding: 36px; position: relative; overflow: hidden; }
.software-card-android { background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent); border: 1px solid rgba(99, 102, 241, 0.15); }
.software-card-pc { background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent); border: 1px solid rgba(139, 92, 246, 0.15); }
.software-card .glow { position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%); border-radius: 50%; }
.software-card-pc .glow { background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%); }
.software-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; position: relative; z-index: 2; }
.software-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.software-icon-android { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.software-icon-pc { background: linear-gradient(135deg, #8B5CF6, #A855F7); }
.software-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.software-card .subtitle { margin: 4px 0 0 0; font-size: 13px; color: var(--text-faint); }
.software-card p { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; position: relative; z-index: 2; }
.software-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 2; }
.software-tag { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.software-tag-android { background: rgba(99, 102, 241, 0.1); color: var(--accent-text); }
.software-tag-pc { background: rgba(139, 92, 246, 0.1); color: #C084FC; }
[data-theme="light"] .software-tag-pc { color: #7C3AED; }
.software-btn { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 14px; position: relative; z-index: 2; transition: transform 0.2s; }
.software-btn:hover { transform: translateY(-2px); }
.software-btn-android { background: #6366F1; }
.software-btn-pc { background: #8B5CF6; }

/* ---------- PCB ---------- */
.pcb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcb-card { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
a.pcb-card { display: block; text-decoration: none; color: inherit; }
.pcb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pcb-card-visual { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pcb-visual-green { background: linear-gradient(135deg, #064E3B, #065F46); }
.pcb-visual-blue { background: linear-gradient(135deg, #1E3A5F, #1E40AF); }
.pcb-visual-purple { background: linear-gradient(135deg, #701A75, #A21CAF); }
.pcb-visual-orange { background: linear-gradient(135deg, #7C2D12, #C2410C); }
.pcb-visual-indigo { background: linear-gradient(135deg, #312E81, #4338CA); }
[data-theme="light"] .pcb-visual-green { background: linear-gradient(135deg, #9FE3C6, #6FCFA3); }
[data-theme="light"] .pcb-visual-blue { background: linear-gradient(135deg, #B9D4F6, #8FB8EC); }
[data-theme="light"] .pcb-visual-purple { background: linear-gradient(135deg, #DFC3EE, #CB9BE1); }
[data-theme="light"] .pcb-visual-orange { background: linear-gradient(135deg, #FBDCB6, #F8C28B); }
[data-theme="light"] .pcb-visual-indigo { background: linear-gradient(135deg, #CCD1F8, #A9B1F1); }
.pcb-card-visual .emoji { font-size: 64px; opacity: 0.3; }
.pcb-card-visual .grid-overlay { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.03) 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, 0.03) 20px); }
[data-theme="light"] .pcb-card-visual .grid-overlay { background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(15, 23, 42, 0.06) 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(15, 23, 42, 0.06) 20px); }
.pcb-card-visual .layer-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(0, 0, 0, 0.5); padding: 4px 10px; border-radius: 6px; font-size: 11px; }
[data-theme="light"] .pcb-card-visual .layer-badge { background: rgba(255, 255, 255, 0.75); }
.layer-green { color: #4ADE80; }
.layer-blue { color: #60A5FA; }
.layer-purple { color: #E879F9; }
.layer-orange { color: #FB923C; }
.layer-indigo { color: #818CF8; }
[data-theme="light"] .layer-green { color: #10734A; }
[data-theme="light"] .layer-blue { color: #1D56B4; }
[data-theme="light"] .layer-purple { color: #9333C4; }
[data-theme="light"] .layer-orange { color: #B85007; }
[data-theme="light"] .layer-indigo { color: #4F46E5; }
.pcb-card-info { padding: 20px; }
.pcb-card-info h4 { margin: 0 0 6px 0; font-size: 16px; font-weight: 600; }
.pcb-card-info p { margin: 0; font-size: 13px; color: var(--text-faint); }
.pcb-card-more { flex-direction: column; }
.pcb-card-visual.pcb-card-more { background: var(--card); border: 1px dashed var(--border-strong); }
.pcb-card-more .plus { font-size: 32px; margin-bottom: 8px; }
.pcb-card-more .text { font-size: 13px; color: var(--text-faint); font-weight: 500; }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-card { border-radius: 20px; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.service-card-cnc { background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), transparent); border: 1px solid rgba(245, 158, 11, 0.15); }
.service-card-3d { background: linear-gradient(180deg, rgba(236, 72, 153, 0.06), transparent); border: 1px solid rgba(236, 72, 153, 0.15); }
.service-card .glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 200px; height: 200px; border-radius: 50%; }
.service-card-cnc .glow { background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%); }
.service-card-3d .glow { background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent 70%); }
.service-icon { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 24px; position: relative; z-index: 2; }
.service-icon-cnc { background: linear-gradient(135deg, #F59E0B, #D97706); }
.service-icon-3d { background: linear-gradient(135deg, #EC4899, #DB2777); }
.service-card h3 { font-size: 24px; font-weight: 700; margin: 0 0 12px 0; position: relative; z-index: 2; }
.service-card p { color: var(--text-muted); line-height: 1.7; margin: 0 0 24px 0; position: relative; z-index: 2; }
.service-tags { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 2; }
.service-tag { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.service-tag-cnc { background: rgba(245, 158, 11, 0.1); color: #FBBF24; }
[data-theme="light"] .service-tag-cnc { color: #D97706; }
.service-tag-3d { background: rgba(236, 72, 153, 0.1); color: #F472B6; }
[data-theme="light"] .service-tag-3d { color: #DB2777; }

/* ---------- PRODUCTS ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--card); border-radius: 16px; padding: 32px; transition: all 0.3s; display: block; position: relative; overflow: hidden; }
.product-card:hover { transform: translateY(-4px); }
.product-card-lawyer { border: 1px solid rgba(56, 189, 248, 0.15); }
.product-card-lawyer:hover { border-color: rgba(56, 189, 248, 0.4); }
.product-card-account { border: 1px solid rgba(16, 185, 129, 0.15); }
.product-card-account:hover { border-color: rgba(16, 185, 129, 0.4); }
.product-card-store { border: 1px solid rgba(139, 92, 246, 0.15); }
.product-card-store:hover { border-color: rgba(139, 92, 246, 0.4); }
.product-card .glow { position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; }
.product-card-lawyer .glow { background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 70%); }
.product-card-account .glow { background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%); }
.product-card-store .glow { background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%); }
.product-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.product-icon-lawyer { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.product-icon-account { background: linear-gradient(135deg, #10B981, #059669); }
.product-icon-store { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.product-card h3 { margin: 0 0 8px 0; font-size: 18px; font-weight: 700; color: var(--text); }
.product-card p { margin: 0 0 16px 0; font-size: 13px; color: var(--text-faint); line-height: 1.6; }
.product-link { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.product-link-lawyer { color: #38BDF8; }
[data-theme="light"] .product-link-lawyer { color: #0284C7; }
.product-link-account { color: #34D399; }
[data-theme="light"] .product-link-account { color: #059669; }
.product-link-store { color: #A78BFA; }
[data-theme="light"] .product-link-store { color: #6D2FCE; }

/* Light-theme accents: cards get visible tints + stronger borders */
[data-theme="light"] .software-card-android { background: linear-gradient(180deg, rgba(221, 225, 252, 0.7), rgba(255, 255, 255, 0)); border-color: rgba(99, 102, 241, 0.25); }
[data-theme="light"] .software-card-pc { background: linear-gradient(180deg, rgba(234, 227, 252, 0.7), rgba(255, 255, 255, 0)); border-color: rgba(139, 92, 246, 0.25); }
[data-theme="light"] .service-card-cnc { background: linear-gradient(180deg, rgba(252, 240, 220, 0.8), rgba(255, 255, 255, 0)); border-color: rgba(245, 158, 11, 0.3); }
[data-theme="light"] .service-card-3d { background: linear-gradient(180deg, rgba(252, 231, 242, 0.8), rgba(255, 255, 255, 0)); border-color: rgba(236, 72, 153, 0.3); }
[data-theme="light"] .product-card-lawyer { border-color: rgba(56, 189, 248, 0.32); }
[data-theme="light"] .product-card-account { border-color: rgba(16, 185, 129, 0.32); }
[data-theme="light"] .product-card-store { border-color: rgba(139, 92, 246, 0.32); }

/* ---------- FOOTER ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-brand-icon { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #6366F1, #8B5CF6); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; }
.footer-brand-text { font-size: 18px; font-weight: 700; }
.footer-brand-text span { color: var(--accent-text); }
.footer-desc { color: var(--text-faint); font-size: 14px; line-height: 1.7; margin: 0 0 20px 0; max-width: 300px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 36px; height: 36px; border-radius: 8px; background: var(--card-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: background 0.2s, color 0.2s; color: var(--text-muted); }
.footer-social:hover { background: var(--hover); color: var(--text); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 16px 0; letter-spacing: 0.5px; }
[dir="rtl"] .footer-col h4 { letter-spacing: 0; }
.footer-col a, .footer-col span { display: block; color: var(--text-faint); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { color: var(--text-dim); font-size: 13px; }

/* ---------- ANIMATIONS ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .pcb-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { gap: 12px; }
  .mobile-menu-btn { display: block; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 32px; }
  .software-grid, .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .pcb-gallery { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}