/* ============== Electric Network Aram System - Styles ============== */
:root {
  --bg-dark: #0f1115;
  --bg-darker: #1f2228;
  --bg-card: #252932;
  --primary: #ff2a2a;
  --primary-dark: #b81515;
  --text: #e8e8e8;
  --text-muted: #9aa0a6;
  --border: #2f343e;
  --accent: #ffb84d;
  --whatsapp: #25D366;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

body.en { direction: ltr; }

a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Top bar / Nav ===== */
.topbar {
  background: linear-gradient(90deg, var(--bg-darker), #16191f);
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.topbar .row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.topbar a { color: var(--text-muted); margin-inline-start: 14px; }
.topbar a:hover { color: var(--primary); }
.lang-switch { cursor: pointer; color: var(--accent); font-weight: 600; }

.navbar {
  background: rgba(15,17,21,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.nav-row { display:flex; align-items:center; justify-content:space-between; gap: 16px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { height: 56px; }
.brand-text { font-weight: 900; font-size: 18px; line-height: 1.1; color:#fff; }
.brand-text small { display:block; font-size:11px; color: var(--text-muted); font-weight:500; letter-spacing:1px; }

.nav-links { display:flex; gap: 22px; list-style:none; align-items:center; }
.nav-links a { color: var(--text); font-weight: 600; padding: 6px 4px; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom:-4px; right:0; left:0; height:2px; background: var(--primary);
}
.btn-call {
  background: var(--primary); color:#fff !important; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; display:inline-flex; align-items:center; gap:6px;
  box-shadow: 0 4px 12px rgba(255,42,42,0.3);
}
.btn-call:hover { background: var(--primary-dark); transform: translateY(-1px); }

.menu-toggle { display:none; background: none; border:0; color:#fff; font-size:24px; cursor:pointer; }

@media (max-width: 900px) {
  .nav-links { display:none; position:absolute; top:100%; right:0; left:0; background: var(--bg-darker); flex-direction:column; padding: 18px 0; border-top: 1px solid var(--border); }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 12px 24px; }
  .menu-toggle { display:block; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display:flex; align-items:center;
  background:
    linear-gradient(135deg, rgba(15,17,21,0.85), rgba(15,17,21,0.6)),
    radial-gradient(circle at 20% 30%, #b81515 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #ff2a2a 0%, transparent 50%),
    linear-gradient(180deg, #0f1115, #1f2228);
  overflow: hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,42,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,42,42,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; text-align:center; padding: 60px 24px; max-width:900px; margin:0 auto; }
.hero h1 {
  font-size: clamp(32px, 6vw, 56px); font-weight: 900; color:#fff;
  margin-bottom: 16px; line-height: 1.2;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-muted); margin-bottom: 28px; }
.hero-cta { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn {
  display:inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700;
  transition: .25s; border:0; cursor:pointer; font-size: 15px;
}
.btn-primary { background: var(--primary); color:#fff; box-shadow: 0 6px 18px rgba(255,42,42,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); color:#fff; }
.btn-outline { border: 2px solid var(--text); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-darker); }
.section-title { text-align:center; margin-bottom: 48px; }
.section-title h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900; color: #fff; margin-bottom: 10px;
}
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 17px; }

/* Service cards */
.grid { display:grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content:''; position:absolute; top:0; right:0; width: 100%; height:3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0); transform-origin: right; transition: .35s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 14px 30px rgba(255,42,42,0.18); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width:64px; height:64px; border-radius:14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center; margin-bottom: 18px;
  font-size: 30px;
}
.service-card h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.service-card ul li {
  color: var(--text-muted); font-size: 14px; padding: 4px 0;
  position: relative; padding-inline-start: 18px;
}
.service-card ul li::before {
  content: '✓'; position: absolute; right: 0; color: var(--primary); font-weight: 900;
}
body.en .service-card ul li::before { right:auto; left:0; }
.service-card .more {
  display:inline-block; color: var(--primary); font-weight: 700; font-size: 14px;
}
.service-card .more::after { content: ' ←'; }
body.en .service-card .more::after { content: ' →'; }

/* Features */
.features { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature {
  text-align:center; padding: 22px;
}
.feature .icon {
  width:72px; height:72px; margin: 0 auto 16px;
  background: rgba(255,42,42,0.12); color: var(--primary);
  border-radius: 50%; display:flex; align-items:center; justify-content:center;
  font-size: 32px;
}
.feature h4 { color:#fff; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; }

/* Page header */
.page-header {
  background:
    linear-gradient(135deg, rgba(15,17,21,0.85), rgba(15,17,21,0.7)),
    radial-gradient(circle at 30% 50%, var(--primary-dark), transparent 60%),
    var(--bg-darker);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}
.page-header h1 { font-size: clamp(30px, 5vw, 48px); color: #fff; margin-bottom: 10px; }
.page-header p { color: var(--text-muted); font-size: 18px; }
.breadcrumb { color: var(--text-muted); margin-top: 12px; font-size: 14px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media(max-width: 800px) { .service-detail { grid-template-columns: 1fr; } }
.service-detail img { border-radius: 14px; border: 1px solid var(--border); }
.service-detail h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.service-detail p { color: var(--text-muted); margin-bottom: 14px; font-size: 16px; }
.service-detail ul { list-style:none; padding:0; margin: 18px 0; }
.service-detail ul li {
  padding: 8px 0; color: var(--text); font-size: 15px;
  padding-inline-start: 28px; position: relative;
}
.service-detail ul li::before {
  content: '⚡'; position:absolute; right:0; top: 8px; color: var(--accent);
}
body.en .service-detail ul li::before { right:auto; left:0; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media(max-width:800px){ .contact-grid { grid-template-columns:1fr; } }
.contact-card {
  background: var(--bg-card); padding: 30px; border-radius: 14px;
  border: 1px solid var(--border);
}
.contact-info { display:flex; flex-direction:column; gap: 18px; margin-top: 18px; }
.contact-info .ci {
  display:flex; align-items:center; gap:14px; padding: 14px;
  background: rgba(255,255,255,0.03); border-radius: 10px; border-right: 3px solid var(--primary);
}
body.en .contact-info .ci { border-right:0; border-left: 3px solid var(--primary); }
.contact-info .ci .ic {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255,42,42,0.15); color: var(--primary);
  display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0;
}
.contact-info .ci strong { display:block; color: #fff; }
.contact-info .ci a, .contact-info .ci span { color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: 16px; }
.form-group label { display:block; margin-bottom: 6px; color: var(--text); font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 15px;
  transition: .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,42,42,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* WhatsApp floating */
.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 99;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display:flex; align-items:center; justify-content:center; font-size: 30px;
  box-shadow: 0 8px 20px rgba(37,211,102,0.45);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 28px rgba(37,211,102,0.75); }
}

/* Footer */
footer {
  background: #0a0c10; padding: 50px 0 20px; border-top: 2px solid var(--border);
  color: var(--text-muted); font-size: 14px;
}
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
@media(max-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 500px){ .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color:#fff; margin-bottom: 16px; font-size: 16px; }
footer ul { list-style: none; }
footer ul li { padding: 5px 0; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--primary); }
.copyright {
  border-top: 1px solid var(--border); padding-top: 18px; text-align:center;
}

/* Animations */
.fade-in { animation: fadeIn .7s ease-in; }
@keyframes fadeIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
