:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --bg-color: #0a0a0a;
  --surface: rgba(20, 20, 20, 0.7);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', 'Cairo', sans-serif;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --surface: rgba(255, 255, 255, 0.85);
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.3s, color 0.3s; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
[data-theme="light"] .site-header { background: rgba(248, 250, 252, 0.8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.logo img { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 32px; font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: #000 !important; padding: 10px 24px; border-radius: 8px; font-weight: 800; }
.btn-nav:hover { background: var(--primary-dark); color: #fff !important; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-btn { background: none; border: 1px solid var(--border); padding: 8px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text-main); }
.lang-switch { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.lang-switch a { padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.lang-switch a.active { background: var(--primary); color: #000; }

/* HERO */
.hero { position: relative; padding: 220px 0 180px; text-align: center; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; }
.bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.95) 100%); z-index: -1; }
.badge { display: inline-block; padding: 8px 16px; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--primary); color: var(--primary); border-radius: 50px; font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.hero h1 { font-size: 68px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px; max-width: 900px; margin-inline: auto; word-wrap: break-word; }
.hero p { font-size: 20px; color: #d4d4d8; max-width: 700px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; }
.btn { padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #000; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--surface); }

/* STATS */
.stats-section { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-plus { font-size: 32px; font-weight: 800; color: var(--primary); margin-top: -8px; }
.stat-item p { margin-top: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

/* SECTIONS & HEADERS */
.services, .articles, .about-section, .projects-section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 42px; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.section-header p { color: var(--text-muted); font-size: 18px; }

/* CARDS (GLASSMORPHISM) */
.services-grid, .articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.glass-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 20px; padding: 40px; transition: transform 0.3s, border-color 0.3s; }
.glass-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.icon-box { font-size: 40px; margin-bottom: 24px; }
.glass-card h3 { font-size: 22px; margin-bottom: 16px; font-weight: 700; color: var(--text-main); }
.glass-card p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.article-card .date { font-size: 13px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }
.read-more { display: inline-block; margin-top: 20px; color: var(--primary); font-weight: 700; }

/* PROCESS (TIMELINE) */
.process-section { padding: 120px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -36px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.timeline-content { background: var(--bg-color); padding: 30px; border-radius: 16px; border: 1px solid var(--border); transition: transform 0.3s; }
.timeline-content:hover { transform: translateX(10px); border-color: var(--primary); }
.step-num { font-size: 14px; font-weight: 800; color: var(--primary); letter-spacing: 2px; display: block; margin-bottom: 10px; }
.timeline-content h3 { font-size: 22px; margin-bottom: 10px; color: var(--text-main); }
.timeline-content p { color: var(--text-muted); font-size: 16px; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-img-wrap { width: 100%; height: 240px; overflow: hidden; border-bottom: 1px solid var(--border); background: #111; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-img-wrap img { transform: scale(1.08); }
.project-info { padding: 24px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-color); }
.project-info h3 { font-size: 18px; color: var(--text-main); margin: 0; }
.visit-btn { background: rgba(16, 185, 129, 0.1); color: var(--primary); padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; border: 1px solid var(--primary); transition: 0.3s; }
.project-card:hover .visit-btn { background: var(--primary); color: #000; }

/* CONTACT FORM */
.contact-section { padding: 160px 0 100px 0; background: var(--bg-color); }
.contact-box { max-width: 600px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); padding: 50px; border-radius: 20px; backdrop-filter: blur(16px); }
.contact-box h1 { color: var(--primary); text-align: center; margin-bottom: 30px; font-size: 32px; font-weight: 800; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-main); margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.form-group input, .form-group textarea { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-main); padding: 14px 16px; border-radius: 10px; font-family: inherit; font-size: 15px; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: rgba(255, 255, 255, 0.1); }
.btn-submit { width: 100%; background: var(--primary); color: #000; border: none; padding: 16px; border-radius: 10px; font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-submit:hover { background: var(--primary-dark); color: #fff; }

/* ARTICLE DETAILS */
.article-detail { padding: 160px 0 100px 0; background: var(--bg-color); }
.article-detail .container { max-width: 800px; }
.article-detail h1 { color: var(--primary); font-size: 42px; margin-bottom: 16px; word-wrap: break-word; }
.article-detail .date { color: var(--text-muted); font-size: 14px; display: block; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.article-detail .content { background: var(--surface); border: 1px solid var(--border); padding: 40px; border-radius: 20px; font-size: 18px; line-height: 1.8; color: var(--text-main); word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; white-space: pre-wrap; }
.back-link { display: inline-block; margin-top: 30px; color: var(--primary); font-weight: 700; font-size: 16px; }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 32px; height: 32px; }

/* FOOTER */
.site-footer { background: #050505; color: #a1a1aa; padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-contact a { color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
  .hero h1 { font-size: 42px; }
  .hero { padding: 180px 0 100px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .timeline::before { left: 10px; }
  .timeline { padding-left: 40px; }
  .timeline-dot { left: 4px; }
}