/* ================================
   O.S Decorations — Modern Premium UI
   ================================ */

/* ========== CSS Variables ========== */
:root {
  /* Core Palette */
  --brown-950: #1a0f0a;
  --brown-900: #2c1810;
  --brown-800: #3e2723;
  --brown-700: #4e342e;
  --brown-600: #5d4037;
  --brown-500: #6d4c41;
  --brown-400: #8d6e63;
  --brown-300: #a1887f;
  --brown-200: #bcaaa4;
  --brown-100: #d7ccc8;
  --brown-50: #efebe9;

  /* Gold Accent */
  --gold-400: #e3c498;
  --gold-500: #d4af37;
  --gold-600: #b8960c;

  /* Neutral */
  --white: #ffffff;
  --white-soft: #fafaf9;
  --gray-50: #f7f5f3;
  --gray-100: #ede8e4;
  --gray-200: #d6cec9;
  --gray-300: #b5a9a3;
  --text-dark: #1c1008;
  --text-medium: #5d4037;
  --text-light: #8d6e63;
  --text-muted: #a1887f;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4e342e 0%, #6d4c41 55%, #8d6e63 100%);
  --gradient-gold: linear-gradient(120deg, #e3c498 0%, #d4af37 50%, #e3c498 100%);
  --gradient-dark: linear-gradient(160deg, rgba(26, 15, 10, 0.97) 0%, rgba(44, 24, 16, 0.92) 60%, rgba(78, 52, 46, 0.88) 100%);
  --gradient-hero-overlay: linear-gradient(to bottom, rgba(26, 15, 10, 0.55) 0%, rgba(26, 15, 10, 0.75) 50%, rgba(26, 15, 10, 0.92) 100%);
  --gradient-card: linear-gradient(135deg, rgba(78, 52, 46, 0.08) 0%, rgba(141, 110, 99, 0.06) 100%);
  --gradient-shine: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  --gradient-brown-subtle: linear-gradient(135deg, rgba(78, 52, 46, 0.05) 0%, rgba(141, 110, 99, 0.05) 100%);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.10);
  --shadow-md: 0 6px 20px rgba(44, 24, 16, 0.14);
  --shadow-lg: 0 12px 40px rgba(44, 24, 16, 0.18);
  --shadow-xl: 0 24px 60px rgba(44, 24, 16, 0.22);
  --shadow-glow: 0 0 50px rgba(109, 76, 65, 0.25);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.25);

  /* Glass */
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-scrolled: rgba(255, 255, 255, 0.97);

  /* Typography */
  --font-en: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", sans-serif;

  /* Layout */
  --container-padding: 20px;
  --section-padding: 80px 0;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-en);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-en);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gradient-brown-subtle);
  border: 1px solid var(--brown-200);
  border-radius: var(--radius-full);
  color: var(--brown-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.section-title {
  font-size: 34px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 28px;
}

/* Light variants */
.light .section-title {
  color: #fff;
}

.light .section-text {
  color: rgba(255, 255, 255, 0.82);
}

.light.section-label,
.light .section-label {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--gold-400);
}

.light .section-label::before {
  background: var(--gradient-gold);
}

/* ========== Layout ========== */
.container {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin: 0 auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  letter-spacing: 0.01em;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(78, 52, 46, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(78, 52, 46, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.header.scrolled {
  background: var(--glass-scrolled);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(44, 24, 16, 0.07);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(44, 24, 16, 0.08);
}

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

/* Brand */
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 800;
  z-index: 1001;
  cursor: default;
}

.brand-os {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  transition: color 0.3s ease;
}

.header.scrolled .brand-os {
  color: var(--brown-900);
}

.brand-decorations {
  font-size: 18px;
  font-weight: 500;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header.scrolled .brand-decorations {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile menu off-canvas */
.nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.nav-menu.active {
  left: 0;
}

.nav-link {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
}

/* Mobile Actions */
.nav-actions {
  display: none;
}

/* Mobile nav actions wrapper (lang + hamburger) */
.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.header.scrolled .mobile-menu-toggle span {
  background: var(--text-dark);
}

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

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ========== Language Toggle ========== */
.lang-toggle {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lang-toggle:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 76, 65, 0.35);
}

.lang-toggle:active {
  transform: translateY(0);
}

/* Hide mobile lang toggle on desktop (desktop uses the one in .nav-actions) */
.lang-toggle-mobile {
  display: flex;
  font-size: 12px;
  padding: 6px 14px;
}

@media (min-width: 1024px) {
  .lang-toggle-mobile {
    display: none;
  }
}

.header.scrolled .lang-toggle {
  background: var(--gray-50);
  color: var(--brown-800);
  border-color: var(--brown-200);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: slowZoom 30s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 60px 20px 40px;
  max-width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-gold);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: 42px;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-stats {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  font-weight: 500;
}

/* ========== Services ========== */
.services-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  background: var(--brown-900);
}

.services-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(78, 52, 46, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(44, 24, 16, 0.7) 0%, transparent 60%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gradient-gold);
  border-color: transparent;
  color: var(--brown-900);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.service-title {
  font-size: 19px;
  color: #fff;
  margin-bottom: 12px;
}

.service-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.75;
}

.service-number {
  display: none;
}

.services-cta {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

/* ========== About ========== */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-visual {
  position: relative;
}

.about-main-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-main-image:hover img {
  transform: scale(1.03);
}

.about-accent-image {
  display: none;
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border: 6px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--gradient-primary);
  padding: 18px;
  border-radius: var(--radius-md);
  text-align: center;
  color: #fff;
}

.experience-number {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.about-features {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #fff;
  border-color: var(--brown-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(78, 52, 46, 0.25);
}

.feature-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== Projects ========== */
.projects-section {
  padding: var(--section-padding);
  background: var(--white-soft);
}

.project-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  width: 100%;
  padding: 10px 8px;
  white-space: normal;
  text-align: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  background: var(--white);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--brown-400);
  color: var(--brown-700);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(78, 52, 46, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.07);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 28px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.project-title {
  font-size: 17px;
  font-weight: 700;
}

/* ========== Process ========== */
.process-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.process-timeline::before {
  display: none;
}

.process-step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-number {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(78, 52, 46, 0.3);
}

.process-number span {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.process-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.process-description {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========== Testimonials ========== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--brown-950);
  position: relative;
  overflow: hidden;
}

.testimonials-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(78, 52, 46, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.quote-mark {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 300px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testimonials-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 32px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  color: var(--gold-500);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 26px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.author-role {
  font-size: 12px;
  color: var(--gold-400);
  font-weight: 500;
}

.testimonial-dots {
  display: none;
}

/* ========== Why Choose Us ========== */
.why-section {
  padding: var(--section-padding);
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-200);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--brown-600);
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 52, 46, 0.35);
}

.why-title {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.why-description {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.75;
}

/* ========== Contact ========== */
.contact-section {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-title {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.contact-description {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xs);
}

.contact-method:hover {
  border-color: var(--brown-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.method-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 50%;
  color: var(--brown-600);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(78, 52, 46, 0.25);
}

.method-icon.whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.2);
}

.contact-method:hover .method-icon.whatsapp {
  background: #25d366;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.method-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--text-medium);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--brown-900);
  color: #fff;
  border-color: var(--brown-900);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.25);
}

.contact-form-wrapper {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--gray-50);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 76, 65, 0.10);
}

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

/* ========== Footer ========== */
.footer {
  background: var(--brown-950);
  color: #fff;
  padding: 60px 0 24px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brown-600), transparent);
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 16px;
}

.footer-brand .brand-os {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.footer-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.8;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--gold-400);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-links a:hover::before {
  width: 10px;
}

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

.footer-contact svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.70);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(78, 52, 46, 0.4);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.40);
}

/* ========== Nav Phone / WhatsApp ========== */
.btn-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  background: var(--gradient-primary);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(78, 52, 46, 0.3);
}

.btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 52, 46, 0.4);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.header.scrolled .btn-whatsapp {
  background: transparent;
  border: 1.5px solid var(--brown-400);
  color: var(--text-dark);
  backdrop-filter: none;
}

.header.scrolled .btn-whatsapp:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

/* ========== Scroll Progress Bar ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =========================================
   MEDIA QUERIES (Min-Width Strategy)
   ========================================= */

/* Small tablets — 576px+ */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }

  .hero-title {
    font-size: 52px;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-filters {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablets — 768px+ */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .section-title {
    font-size: 40px;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
  }

  .stat-card {
    min-width: 170px;
  }

  .about-main-image {
    aspect-ratio: 16/9;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .contact-form-wrapper {
    padding: 44px;
  }

  .project-filters {
    grid-template-columns: repeat(5, 1fr);
  }

  .testimonial {
    flex: 0 0 80%;
  }
}

/* Small desktop — 992px+ */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  /* Header */
  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: 32px;
  }

  .nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding-bottom: 4px;
    position: relative;
  }

  .header.scrolled .nav-link {
    color: var(--text-dark);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
    border-radius: 2px;
  }

  .nav-link:hover {
    color: #fff;
  }

  .header.scrolled .nav-link:hover {
    color: var(--brown-700);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .header.scrolled .nav-link::after {
    background: var(--gradient-primary);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hero */
  .hero-content {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 68px;
  }

  .hero-subtitle {
    font-size: 20px;
    max-width: 680px;
    margin-inline: auto;
  }

  /* About */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-main-image {
    aspect-ratio: 4/5;
  }

  .about-accent-image {
    display: block;
    right: -30px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-number {
    display: block;
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 54px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
  }

  /* Process */
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-timeline::before {
    display: block;
    top: 35px;
  }

  /* Why */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials — switch to grid */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
  }

  .testimonial {
    flex: unset;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  /* Buttons */
  .btn {
    width: auto;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop — 1200px+ */
@media (min-width: 1200px) {
  .container {
    max-width: 1160px;
  }

  .hero-title {
    font-size: 84px;
  }

  .section-title {
    font-size: 44px;
  }

  .project-card.featured {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    gap: 24px;
  }
}

/* Extra large — 1400px+ */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ========== Animations ========== */
.fade-in {
  animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.12);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* =========================================
   RTL / Arabic Support
   ========================================= */
[dir="rtl"] {
  font-family: var(--font-ar);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  letter-spacing: 0;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .contact-title {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

[dir="rtl"] .hero-label,
[dir="rtl"] .section-label {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

[dir="rtl"] .notification {
  right: auto;
  left: 24px;
}

/* Language transition */
.lang-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-transition.visible {
  opacity: 1;
}

/* About accent image RTL */
[dir="rtl"] .about-accent-image {
  right: auto;
  left: -30px;
}

/* Mobile menu RTL */
[dir="rtl"] .nav-menu {
  left: auto;
  right: -100%;
  transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
}

[dir="rtl"] .nav-menu.active {
  right: 0;
}

/* Service number RTL */
[dir="rtl"] .service-number {
  right: auto;
  left: 20px;
}

/* Process step number RTL */
[dir="rtl"] .process-step .step-number {
  margin-right: 0;
  margin-left: auto;
}

/* Footer social links RTL */
[dir="rtl"] .footer-social {
  justify-content: flex-start;
}

/* Footer link hover RTL */
[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 6px;
}

/* Nav underline RTL */
[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

/* Contact form button icon flip */
[dir="rtl"] .nav-link,
[dir="rtl"] .btn,
[dir="rtl"] .lang-toggle,
[dir="rtl"] .mobile-menu-toggle,
[dir="rtl"] .nav-brand {
  font-family: var(--font-ar) !important;
}