/* ===== CSS Variables ===== */
:root {
  --primary: #0f4c75;
  --primary-light: #3282b8;
  --primary-dark: #0b2f4a;
  --accent: #00b4d8;
  --accent-light: #48cae4;
  --bg-dark: #0a1628;
  --bg-light: #f8fafc;
  --bg-card: rgba(255,255,255,0.08);
  --text-dark: #1a1a2e;
  --text-light: #e0e6ed;
  --text-muted: #6b7b8d;
  --glass-bg: rgba(255,255,255,0.1);
  --glass-border: rgba(255,255,255,0.18);
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Heebo', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.3; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,76,117,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15,76,117,0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(0,180,216,0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

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

.nav-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: var(--bg-dark) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,180,216,0.4); }

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Hero Sections ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-bg.hero-home { background-image: url('_uploads/ai_134a182a4ce42f2f.jpg'); }
.hero-bg.hero-about { background-image: url('_uploads/ai_40c8d42c72e0bf7a.jpg'); }
.hero-bg.hero-services { background-image: url('_uploads/ai_c6f485ec3109288a.jpg'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(15,76,117,0.7));
  z-index: 1;
}

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

.hero-content h1 { margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll svg { width: 32px; height: 32px; stroke: rgba(255,255,255,0.6); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Page Hero (smaller) */
.page-hero {
  min-height: 50vh;
  padding-top: 100px;
}

/* ===== Sections ===== */
section { padding: 96px 0; }

.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-gradient { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary-dark) 100%); color: var(--text-light); }

/* ===== Glass Cards ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.3);
}

/* Light Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Features / Stats ===== */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Services Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card .card-stripe {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.service-card h3 { margin-bottom: 12px; color: var(--primary-dark); }
.service-card p { color: var(--text-muted); line-height: 1.8; }

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary-light);
  font-weight: 700;
  transition: gap var(--transition);
}

.service-card:hover .service-link { gap: 12px; }

/* ===== Process Steps ===== */
.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 16px;
}

/* ===== Testimonials ===== */
.testimonial-card {
  text-align: center;
  padding: 40px;
}

.testimonial-card .quote {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
}

.testimonial-card .quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -20px;
  right: -8px;
  font-family: serif;
  opacity: 0.3;
}

.testimonial-card .author { font-weight: 700; color: var(--primary); }
.testimonial-card .role { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Clients ===== */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.client-badge {
  padding: 12px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.client-badge:hover {
  background: rgba(0,180,216,0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== Contact Form ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
  background: #fff;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,180,216,0.1);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
  margin-top: 16px;
  text-align: center;
}

.form-message.success {
  display: block;
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.3);
}

.form-message.error {
  display: block;
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: right;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition);
}

.faq-question:hover { color: var(--primary-light); }

.faq-question .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: 1.2rem;
  color: var(--primary-light);
}

.faq-item.active .faq-question .icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px 0 0;
}

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

.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 12px; line-height: 1.8; }

.footer-links h4 { margin-bottom: 16px; color: var(--accent); font-size: 1rem; }

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-links a:hover { color: #fff; padding-right: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin-bottom: 32px; opacity: 0.85; }

/* ===== About Page Specifics ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.values-list { display: flex; flex-direction: column; gap: 20px; }

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-item .value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.value-item h4 { margin-bottom: 4px; }
.value-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Contact Info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Privacy Page ===== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--primary);
}

.privacy-content p, .privacy-content ul {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-right: 24px;
  list-style: disc;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition);
    padding: 24px;
  }

  .nav-links.open { right: 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  section { padding: 64px 0; }

  .hero-bg { background-attachment: scroll; }

  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card, .glass-card { padding: 24px; }
  h1 { font-size: 2rem; }
}
