/* Base typography & layout */
html,
body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050910;
  color: #f5f5f5;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-weight: 700;
  font-size: 2rem;
}

.section-title p {
  color: #a0aec0;
}

/* Color system */
:root {
  --bg-dark: #050910;
  --bg-dark-alt: #0b101a;
  --bg-card: #0f172a;
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.2);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
}

.bg-dark-main {
  background-color: var(--bg-dark);
}

.bg-dark-alt {
  background-color: var(--bg-dark-alt);
}

.text-muted-soft {
  color: var(--text-muted);
}

.accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Navbar */
.navbar-custom {
  background: linear-gradient(
    to bottom,
    rgba(5, 9, 16, 0.98),
    rgba(5, 9, 16, 0.9)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(18px);
}

.navbar-brand span {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent) !important;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3vw + 1.5rem, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-metric {
  min-width: 120px;
}

.hero-metric .value {
  font-size: 1.6rem;
  font-weight: 800;
}

.hero-metric .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at top, #1f2937, #020617);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.9);
}

.hero-card img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.1),
    rgba(15, 23, 42, 0.85)
  );
}

.hero-card-overlay .p-3 {
  width: 100%;
}

.hero-card-overlay p {
  line-height: 1.7;
}

.hero-floating-badge {
  position: absolute;
  left: 10%;
  bottom: 12%;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.8);
}

.hero-floating-badge small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hero-floating-badge strong {
  color: var(--accent);
}

.hero-gradient-orbit {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 10% 0,
    rgba(251, 191, 36, 0.23),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}

/* Cards */
.service-card,
.material-card {
  background: linear-gradient(145deg, #020617, #020617, #020617);
  border-radius: 1.1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card::before,
.material-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -40%;
  inset-block-start: -40%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover,
.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.8);
  border-color: rgba(251, 191, 36, 0.4);
}

.service-card:hover::before,
.material-card:hover::before {
  opacity: 1;
  transform: translate(-10px, 10px);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.1rem;
}

.material-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Steps (workflow) */
.steps-line {
  position: relative;
}

.steps-line::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.1),
    rgba(148, 163, 184, 0.5),
    rgba(148, 163, 184, 0.1)
  );
}

.step-item {
  position: relative;
  padding-inline-start: 3rem;
  margin-bottom: 1.5rem;
}

.step-index {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #fbbf24, #78350f);
  color: #111827;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

/* Stats */
.stats-card {
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at 10% 0, #020617, #020617);
  border: 1px solid var(--border-subtle);
}

.stats-card h3 {
  font-size: 2rem;
  font-weight: 800;
}

.stats-card p {
  color: var(--text-muted);
}

/* Projects */
.project-card {
  background: #020617;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.8);
}

.project-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.projects-heading {
  max-width: 680px;
  padding-inline-end: 1rem;
}

/* Clients strip */
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.client-logo {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Buttons & pills */
.btn-accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  color: #111827;
  font-weight: 700;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #020617;
}

.btn-outline-accent {
  border: 1px solid rgba(251, 191, 36, 0.8);
  color: var(--accent);
  background: transparent;
}

.btn-outline-accent:hover {
  background: rgba(251, 191, 36, 0.08);
  color: var(--accent);
}

.badge-soft {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Floating WhatsApp & call */
.floating-actions {
  position: fixed;
  inset-inline-start: 1.5rem;
  inset-block-end: 1.5rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.floating-actions a {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.85);
}

.btn-whatsapp {
  background: #22c55e;
}

.btn-call {
  background: #0ea5e9;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
}

.footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--accent);
}

/* Inner pages generic */
.page-header {
  padding: 80px 0 40px;
  background: radial-gradient(circle at top, #111827, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.breadcrumb-custom {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb-custom a {
  color: var(--text-muted);
}

.breadcrumb-custom a:hover {
  color: var(--accent);
}

/* FAQ */
.accordion-button {
  background-color: #020617;
  color: #f9fafb;
}

.accordion-item {
  border-color: rgba(148, 163, 184, 0.3);
}

.accordion-button:not(.collapsed) {
  background-color: #020617;
  color: var(--accent);
}

/* Contact form */
.form-control,
.form-select {
  background-color: #020617;
  border-color: rgba(148, 163, 184, 0.5);
  color: #f9fafb;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.2);
}

.form-control::placeholder {
  color: #6b7280;
}

@media (max-width: 767.98px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 100px;
  }

  .steps-line::before {
    inset-inline-start: 12px;
  }

  .step-item {
    padding-inline-start: 2.7rem;
  }

  .hero-card img {
    min-height: 360px;
  }

  .projects-heading {
    padding-inline-end: 0;
  }
}

