/* ====== CSS Variables ====== */
:root {
  --primary: #0a1628;
  --primary-light: #1a2d4a;
  --accent: #2196F3;
  --accent-light: #64B5F6;
  --accent-dark: #1565C0;
  --secondary: #00BCD4;
  --text: #e0e6ed;
  --text-dark: #1a1a2e;
  --white: #ffffff;
  --gray-100: #f5f7fa;
  --gray-200: #e8ecf1;
  --gray-300: #cdd5de;
  --gray-600: #6b7b8d;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --shadow: 0 8px 32px rgba(0,0,0,0.18);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Rubik', sans-serif;
  --font-heading: 'Heebo', sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  direction: rtl;
  text-align: right;
  color: var(--text-dark);
  background: var(--gray-100);
  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: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title h2 {
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
  margin: 16px auto 0;
}

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

.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-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -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: 500;
  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: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-light); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33,150,243,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ====== Hero Sections ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-home { background-image: url('_uploads/ai_21b0bf77d9132601.jpg'); }
.hero-about { background-image: url('_uploads/ai_5121bc5f7352fa70.jpg'); }
.hero-services { background-image: url('_uploads/ai_500c1dbec39602d6.jpg'); }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(10,22,40,0.65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.85);
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

/* Page hero - shorter */
.page-hero {
  min-height: 50vh;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(33,150,243,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(33,150,243,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #00838F);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,188,212,0.3);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,188,212,0.5);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

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

.section-light { background: var(--white); }
.section-gray { background: var(--gray-100); }
.section-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

/* ====== Cards ====== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33,150,243,0.1), rgba(0,188,212,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 12px; color: var(--primary); }
.card p { color: var(--gray-600); }

/* ====== Glass Card ====== */
.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: 40px 32px;
  transition: all var(--transition);
}
.glass-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* ====== 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; }

/* ====== Stats Section ====== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ====== Features / Services Grid ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card-header {
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.service-card-body {
  padding: 28px 24px;
}
.service-card-body h3 {
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.service-card-body a {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card-body a:hover { color: var(--accent-dark); }

/* ====== Testimonials ====== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}
.testimonial-text {
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}
.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray-600);
}
.stars {
  color: #FFB300;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

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

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--white);
  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(33,150,243,0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ====== Form Messages ====== */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
  display: none;
  animation: fadeUp 0.4s ease-out;
}
.form-message.success {
  display: block;
  background: rgba(76,175,80,0.1);
  color: #2E7D32;
  border: 2px solid rgba(76,175,80,0.3);
}
.form-message.error {
  display: block;
  background: rgba(244,67,54,0.1);
  color: #C62828;
  border: 2px solid rgba(244,67,54,0.3);
}

/* ====== FAQ Accordion ====== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ====== Footer ====== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about p {
  color: rgba(255,255,255,0.65);
  margin-top: 16px;
  line-height: 1.8;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  padding: 6px 0;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-right: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ====== Funnel / Quote Pages ====== */
.funnel-section {
  background: linear-gradient(135deg, var(--gray-100), var(--white));
}

.funnel-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.funnel-card h2 {
  color: var(--primary);
  margin-bottom: 12px;
}
.funnel-card > p {
  color: var(--gray-600);
  margin-bottom: 36px;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all var(--transition);
}
.step-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.funnel-step {
  display: none;
}
.funnel-step.active {
  display: block;
  animation: fadeUp 0.5s ease-out;
}

.quote-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.quote-option {
  padding: 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.quote-option:hover {
  border-color: var(--accent);
  background: rgba(33,150,243,0.05);
}
.quote-option.selected {
  border-color: var(--accent);
  background: rgba(33,150,243,0.1);
}
.quote-option-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ====== Privacy Page ====== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}
.legal-content h2 {
  color: var(--primary);
  margin: 32px 0 16px;
  font-size: 1.4rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}
.legal-content ul {
  list-style: disc;
  padding-right: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ====== CTA Section ====== */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ====== Animations ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Partners Bar ====== */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.partner-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gray-300);
  transition: color var(--transition);
}
.partner-logo:hover { color: var(--accent); }

/* ====== Process Steps ====== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 32px 24px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--gray-600); font-size: 0.95rem; }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .hero { background-attachment: scroll; min-height: 80vh; }
  .page-hero { min-height: 45vh; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }

  .funnel-card { padding: 32px 20px; }
  .legal-content { padding: 32px 20px; }

  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .stat-number { font-size: 2rem; }
}

/* ====== Loading Spinner ====== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
