/*
 *  NeonTech — Modern Tech Company Website (Light Theme)
 *  Colors matched to logo: Blue #1CB8F0, Teal #20C9B8
 */

/* ═══════════════════════════════════════════
   GOOGLE FONTS (Inter + Cairo for Arabic)
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --accent: #1CB8F0;
  --accent-glow: rgba(28, 184, 240, 0.35);
  --accent-teal: #20C9B8;
  --accent-teal-glow: rgba(32, 201, 184, 0.35);
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #eef4f9;
  --card-bg: #ffffff;
  --card-border: rgba(28, 184, 240, 0.12);
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #8898aa;
  --gradient-1: linear-gradient(135deg, #1CB8F0, #20C9B8);
  --gradient-2: linear-gradient(135deg, #0FA6E1, #17A89E);
  --font-en: 'Inter', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & 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-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body, [dir="rtl"] {
  font-family: var(--font-ar);
}

::selection { background: rgba(28, 184, 240, 0.2); color: var(--text-primary); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-teal); }

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

/* ── Background subtle dots ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(28, 184, 240, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(32, 201, 184, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28, 184, 240, 0.12);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo img { height: 48px; width: auto; filter: drop-shadow(0 2px 8px rgba(28,184,240,0.25)); }
.nav-logo .brand-text { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(28, 184, 240, 0.06);
}

.lang-btn {
  background: var(--bg);
  border: 1.5px solid rgba(28, 184, 240, 0.2);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 12px;
  white-space: nowrap;
}

.lang-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(28,184,240,0.04); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid rgba(28,184,240,0.1); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
  .nav-links.show { display: flex; }
  .nav-toggle { display: block; }
  .lang-btn { margin-left: 0; margin-top: 8px; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(170deg, #f8fafc 0%, #eef6fc 30%, #f0f8fc 60%, #f5fafd 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(28, 184, 240, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(32, 201, 184, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(28, 184, 240, 0.04) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28,184,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,184,240,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: float 15s infinite;
  opacity: 0;
}

.hero-particles span:nth-child(1) { left: 10%; top: 60%; animation-delay: 0s; animation-duration: 18s; }
.hero-particles span:nth-child(2) { left: 30%; top: 40%; animation-delay: 2s; animation-duration: 12s; }
.hero-particles span:nth-child(3) { left: 50%; top: 70%; animation-delay: 4s; animation-duration: 20s; }
.hero-particles span:nth-child(4) { left: 70%; top: 30%; animation-delay: 1s; animation-duration: 14s; }
.hero-particles span:nth-child(5) { left: 85%; top: 55%; animation-delay: 3s; animation-duration: 16s; }
.hero-particles span:nth-child(6) { left: 15%; top: 85%; animation-delay: 5s; animation-duration: 22s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0; }
  50% { transform: translateY(-120px) scale(1.5); opacity: 0.35; }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 184, 240, 0.06);
  border: 1px solid rgba(28, 184, 240, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(28,184,240,0.5); } 50% { box-shadow: 0 0 0 8px rgba(28,184,240,0); } }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: #0b1a2e;
}

.hero h1 .gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(28, 184, 240, 0.3);
  color: var(--accent);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(28,184,240,0.04);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   SECTIONS (Shared)
   ═══════════════════════════════════════════ */
section { padding: 100px 0; position: relative; }

section:nth-child(even) {
  background: var(--bg-2);
}

.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #0b1a2e;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ═══════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(28,184,240,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 0 40px rgba(28,184,240,0.04);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(28,184,240,0.08), rgba(32,201,184,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }

.service-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover { gap: 10px; }

/* ═══════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; color: #0b1a2e; }
.about-content p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.97rem; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }

.stat-item {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

.about-visual { position: relative; }

.glass-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(28,184,240,0.04), transparent 70%);
  pointer-events: none;
}

.quote-icon { font-size: 3rem; color: var(--accent); opacity: 0.2; margin-bottom: 16px; }
.quote-text { font-size: 1.05rem; font-style: italic; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.quote-author { font-weight: 700; color: var(--text-primary); }
.quote-role { font-size: 0.85rem; color: var(--accent); }

/* ═══════════════════════════════════════════
   PRODUCT SECTION
   ═══════════════════════════════════════════ */
.product-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.product-card:hover { border-color: rgba(28,184,240,0.25); box-shadow: 0 12px 40px rgba(0,0,0,0.07); }

.product-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(28,184,240,0.06), rgba(32,201,184,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(28,184,240,0.08);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.product-card .product-desc { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); }
.feature-list li i { color: var(--accent-teal); font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-card:hover { border-color: rgba(28,184,240,0.25); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }

.why-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(28,184,240,0.08), rgba(32,201,184,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.why-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(160deg, #eaf4fb 0%, #e2f0f9 40%, #ecf6fb 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(28,184,240,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(32,201,184,0.06) 0%, transparent 50%);
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 14px; color: #0b1a2e; }
.cta-section p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: #f8fafc;
  border-top: 1px solid rgba(28,184,240,0.08);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }

.footer h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(28,184,240,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-template-columns: 1fr; text-align: center; }
  .product-icon-wrap { margin: 0 auto; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* ═══════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════ */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-desc { margin-left: 0; }
[dir="rtl"] .feature-list li { flex-direction: row; }
[dir="rtl"] .service-link i { transform: rotate(180deg); }
[dir="rtl"] .why-card { text-align: right; }
[dir="rtl"] .nav-links { padding-right: 0; }
[dir="rtl"] .lang-btn { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .section-header { text-align: center; }
