:root {
  --site-bg: #f6f3ec;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #fffdf9;
  --ink: #1f2a37;
  --muted: #5d6b7a;
  --line: rgba(31, 42, 55, 0.1);
  --primary: #0f766e;
  --primary-deep: #134e4a;
  --accent: #f97316;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
}

.ltr {
  direction: ltr;
}

.rtl {
  direction: rtl;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 24%),
    linear-gradient(180deg, #fffefc 0%, var(--site-bg) 100%);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.section-shell {
  padding: 4rem 0;
}

.glass-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-eyebrow {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem); /* Fixed the clamping issue from SCSS */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-copy {
  color: var(--muted);
  max-width: 62ch;
}

.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.btn-brand {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border: none;
  color: white;
}

.btn-brand:hover,
.btn-brand:focus {
  background: linear-gradient(135deg, #0b5e58, #103c39);
  color: white;
}

.btn-outline-brand {
  border-color: rgba(15, 118, 110, 0.25);
  color: var(--primary-deep);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-deep);
}

.form-control,
.form-select {
  border-radius: 16px;
  border-color: rgba(31, 42, 55, 0.12);
  padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.12);
}

html[dir="rtl"] body {
  text-align: right;
}

/* Custom transitions */
.page-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service icon */
.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

/* Metric card */
.metric-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

/* Project Card */
.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card .card-body p {
  flex: 1;
}

.project-cover {
  position: relative;
  height: 200px;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.78), rgba(19, 78, 74, 0.88)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  background-size: cover;
  background-position: center;
}

.project-cover.has-image {
  background-size: cover !important;
  background-position: center !important;
}

.project-cover.has-image .cover-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
  border-radius: inherit;
}

/* Progress bar */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 42, 55, 0.08);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
