/* ===== CSS Variables ===== */
:root {
  --primary: #b8860b;
  --primary-light: #d4a017;
  --primary-dark: #8b6508;
  --background: #faf9f7;
  --foreground: #1a1a1a;
  --muted: #f5f4f2;
  --muted-foreground: #6b6b6b;
  --card: #ffffff;
  --border: #e5e5e5;
  --white: #ffffff;
  --black: #000000;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.rtl {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.header.scrolled .logo-main {
  color: var(--foreground);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.header.scrolled .logo-sub {
  color: var(--primary);
}

.logo img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo img {
  filter: none;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.header.scrolled .nav-links a {
  color: var(--foreground);
}

.header.scrolled .nav-links a:hover {
  color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.header.scrolled .lang-switcher-btn {
  background: var(--muted);
  border-color: var(--border);
  color: var(--foreground);
}

.lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header.scrolled .lang-switcher-btn:hover {
  background: var(--border);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  min-width: 120px;
  overflow: hidden;
  z-index: 100;
}

.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: var(--transition);
}

.lang-dropdown a:hover {
  background: var(--muted);
  color: var(--primary);
}

.lang-dropdown a.active {
  background: rgba(184, 134, 11, 0.1);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
  background: var(--foreground);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.5), transparent);
}

body.rtl .hero-overlay {
  background: linear-gradient(to left, rgba(0,0,0,0.75), rgba(0,0,0,0.5), transparent);
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge .separator {
  color: rgba(255, 255, 255, 0.5);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Section Styles ===== */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.why-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-image:hover img {
  transform: scale(1.05);
}

.why-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.why-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(184, 134, 11, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.mission-card {
  background: var(--card);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.mission-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.mission-card h4 i {
  font-size: 1rem;
}

.mission-card p {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* ===== Services Section ===== */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-item:nth-child(even) .service-image {
  order: 2;
}

.service-item:nth-child(even) .service-content {
  order: 1;
}

body.rtl .service-item:nth-child(even) .service-image {
  order: 1;
}

body.rtl .service-item:nth-child(even) .service-content {
  order: 2;
}

.service-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-image:hover img {
  transform: scale(1.05);
}

.service-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(184, 134, 11, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.service-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.service-content p {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1), transparent);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
}

body.rtl .project-category {
  left: auto;
  right: 1rem;
}

.project-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.75rem;
}

body.rtl .project-count {
  right: auto;
  left: 1rem;
}

.project-count svg {
  width: 16px;
  height: 16px;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}

.project-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.project-info p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-thumbnails {
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  overflow: hidden;
}

.project-thumbnails img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.project-more {
  width: 64px;
  height: 48px;
  background: var(--muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== Partners Section ===== */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.partner-item {
  max-width: 150px;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.partner-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.partner-item img {
  max-width: 100%;
  height: auto;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  color: rgba(184, 134, 11, 0.2);
}

body.rtl .testimonial-quote {
  right: auto;
  left: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  color: var(--primary);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  margin-bottom: 2rem;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.contact-image-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.contact-image-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.contact-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(184, 134, 11, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-item h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
  color: var(--foreground);
}

.contact-item p,
.contact-item a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--foreground);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-main {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
}

.footer-brand .logo-sub {
  color: var(--primary);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #25d366;
  color: var(--white);
  font-size: 0.875rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #128c7e;
  color: var(--white);
}

.whatsapp-btn svg {
  width: 16px;
  height: 16px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ===== Gallery Modal ===== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-close svg {
  width: 24px;
  height: 24px;
}

.gallery-info {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.gallery-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.gallery-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
}

.gallery-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-nav svg {
  width: 32px;
  height: 32px;
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-thumb {
  width: 64px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

.gallery-counter {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

body.rtl .scroll-top-btn {
  right: auto;
  left: 2rem;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .why-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.25rem;
    color: var(--foreground);
  }

  .mobile-menu-btn {
    display: block;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item .service-image,
  .service-item:nth-child(even) .service-image {
    order: 1;
    height: 300px;
  }

  .service-item .service-content,
  .service-item:nth-child(even) .service-content {
    order: 2;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .why-image,
  .about-image {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }
}
