@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #0F172A;
  --secondary-color: #2563EB;
  --accent-color: #14B8A6;
  --highlight-color: #F59E0B;
  --bg-color: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

html[dir="rtl"] {
  text-align: right;
}

html[dir="ltr"] {
  text-align: left;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-accent:hover {
  background-color: #0F766E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}
.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Top bar */
.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.top-bar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Header */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.main-header.scrolled {
  box-shadow: var(--shadow-md);
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo span {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}
.nav-menu a:hover, .nav-menu a.active-link {
  color: var(--secondary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switchers {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-color);
  padding: 0.25rem;
  border-radius: 8px;
}
.lang-switcher {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-switcher.active {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 60%);
  border-radius: 50%;
}
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
}

/* Sections */
.section-padding {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Cards Network */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: #EFF6FF;
  color: var(--secondary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg {
  width: 30px;
  height: 30px;
}
.card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Portfolio Cards */
.portfolio-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: var(--transition);
}
.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.portfolio-img {
  height: 200px;
  width: 100%;
  background-color: var(--border-color);
  overflow: hidden;
  position: relative;
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}
.portfolio-content {
  padding: 1.5rem;
}
.portfolio-category {
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.faq-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-color);
}
.faq-icon {
  transition: var(--transition);
  display: flex;
}
.faq-icon svg {
  width: 20px;
  height: 20px;
}
.faq-body {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-body {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Process Timeline */
.process-list {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}
html[dir="rtl"] .process-list::before {
  left: auto;
  right: 20px;
}
.process-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}
html[dir="rtl"] .process-item {
  padding-left: 0;
  padding-right: 3rem;
}
.process-number {
  position: absolute;
  top: 0; left: 6px;
  width: 30px; height: 30px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
html[dir="rtl"] .process-number {
  left: auto;
  right: 6px;
}
.process-item h4 {
  margin-bottom: 0.5rem;
  padding-top: 4px;
}

/* Pricing Card */
.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 2px solid var(--secondary-color);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--highlight-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.875rem;
}
.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 1.5rem 0;
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.contact-info .card {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.success-msg {
  display: none;
  background: #D1FAE5;
  color: #065F46;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

/* Floating Buttons */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}
html[dir="rtl"] .floating-actions {
  right: auto;
  left: 2rem;
}
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.float-whatsapp {
  background: #25D366;
}
.float-call {
  background: var(--secondary-color);
}
.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}
.float-btn svg {
  width: 30px;
  height: 30px;
}

/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-about p {
  color: #CBD5E1;
  margin-top: 1rem;
}
.footer-links h4, .footer-contact h4 {
  margin-bottom: 1.5rem;
  color: var(--white);
}
.footer-links ul li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #CBD5E1;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}
html[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #CBD5E1;
  align-items: flex-start;
}
.footer-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #94A3B8;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .top-bar-info { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .menu-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  .header-actions { margin-top: 1rem; }
  .hero { padding: 4rem 0; }
  .hero-content h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
