:root {
  font-family: "Cairo", "Segoe UI", system-ui, sans-serif;
  --brand-dark: #020912;
  --brand-deep: #0a1a2b;
  --brand-card: rgba(15, 23, 42, 0.95);
  --brand-blue: #0ea5e9;
  --brand-blue-strong: #38bdf8;
  --brand-border: rgba(255, 255, 255, 0.1);
  --brand-muted: #cbd5f5;
  --brand-muted-strong: rgba(203, 213, 245, 0.7);
  --brand-white: #f8fafc;
  --card-shadow: 0 25px 60px rgba(3, 8, 22, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--brand-white);
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(248, 250, 252, 0.1), transparent 30%), #020612;
  line-height: 1.6;
  direction: rtl;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 1.25rem 0;
  background: rgba(2, 9, 18, 0.95);
  border-bottom: 1px solid var(--brand-border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav a {
  color: var(--brand-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--brand-blue-strong);
}

.hero {
  margin-top: 3rem;
  background: var(--brand-card);
  border-radius: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--brand-border);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0.7rem;
}

.hero p {
  color: var(--brand-muted);
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: var(--brand-muted-strong);
}

.hero img {
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-strong));
  color: #fff;
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--brand-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.25rem;
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--brand-border);
  box-shadow: 0 18px 45px rgba(2, 9, 18, 0.6);
}

.info-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--brand-muted);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  font-size: 1.7rem;
}

.section-heading span {
  color: var(--brand-muted);
}

.projects,
.products-showcase,
.customer-feedback,
.operations,
.contact {
  margin-top: 3rem;
  background: #050a16;
  padding: clamp(2rem, 3vw, 3rem);
  border-radius: 2rem;
  border: 1px solid var(--brand-border);
  box-shadow: var(--card-shadow);
}

.projects-grid,
.products-grid,
.feedback-grid,
.operations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.project-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.1), rgba(2, 9, 18, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px rgba(2, 9, 18, 0.5);
}

.project-card .content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-card h3 {
  margin: 0;
}

.project-card p {
  color: var(--brand-muted);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card {
  border-radius: 1.3rem;
  border: 1px solid var(--brand-border);
  background: rgba(8, 15, 30, 0.9);
  padding: 1rem;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.product-card img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--brand-border);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card__header strong {
  font-size: 1.1rem;
}

.product-card__badge {
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card__meta {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.feedback-panel {
  border-radius: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.03);
}

.feedback-panel h3 {
  margin-top: 0;
}

.feedback-list {
  display: grid;
  gap: 0.85rem;
}

.feedback-card {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(5, 10, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(2, 6, 20, 0.5);
}

.feedback-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.feedback-card small {
  color: var(--brand-muted);
}

.operations-card {
  border-radius: 1.4rem;
  padding: 1.25rem;
  background: rgba(5, 10, 22, 0.95);
  border: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.operations-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: var(--brand-muted);
}

.operations-card strong {
  font-size: 1.6rem;
}

.operations-company {
  flex-direction: row;
  align-items: center;
}

.operations-company img {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--brand-border);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: var(--brand-blue-strong);
  font-size: 0.8rem;
}

.contact form {
  display: grid;
  gap: 1rem;
}

.contact label {
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.contact input,
.contact textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--brand-white);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact button {
  background: linear-gradient(120deg, var(--brand-blue), #2563eb);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.contact button:hover {
  transform: translateY(-1px);
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.message.error {
  background: rgba(254, 226, 226, 0.2);
  color: #fecaca;
}

.message.success {
  background: rgba(167, 243, 208, 0.2);
  color: #4ade80;
}

footer {
  text-align: center;
  padding: 2rem 0 3rem;
  color: var(--brand-muted);
}

@media (max-width: 640px) {
  .hero,
  .projects,
  .products-showcase,
  .customer-feedback,
  .operations,
  .contact {
    padding: 1.5rem;
  }

  .operations-company {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card {
    grid-template-columns: 1fr;
  }
}
