:root {
  --primary-green: #0ac454;
  --primary-dark: #079640;
  --white: #ffffff;
  --black: #000000;
  --dark-grey: #121212;
  --medium-grey: #1e1e1e;
  --light-text: #e0e0e0;

  --glass-bg: rgba(30, 30, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-en:
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Support via JS toggling dir="rtl" on html */
[dir="rtl"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

/* --- Components --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--primary-green);
  color: var(--white);
  border: 2px solid var(--primary-green);
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--white);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover {
  color: var(--primary-green);
}

.btn:hover::before {
  width: 100%;
}

[dir="rtl"] .btn {
  letter-spacing: 0;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-green);
  transition: var(--transition);
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

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

.nav-links a:hover {
  color: var(--primary-green);
}

/* Header Actions & Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#lang-btn {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

#lang-btn:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)),
    url("assets/hero.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary-green);
  filter: blur(150px);
  opacity: 0.2;
  border-radius: 50%;
  top: -100px;
  right: -100px;
  z-index: 0;
}

[dir="rtl"] .hero::before {
  right: auto;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #a0a0a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.5rem;
  color: var(--light-text);
  margin-bottom: 40px;
}

/* --- Section Headings (Fixed for both LTR & RTL) --- */
.heading {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  display: block;
  width: 100%;
  left: auto;
  transform: none;
}

.heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  margin: 12px auto 0;
  border-radius: 2px;
}

[dir="rtl"] .heading {
  text-align: center;
}

/* --- About Section --- */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0;
  font-size: 1.2rem;
  color: var(--light-text);
  line-height: 1.8;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: var(--medium-grey);
  padding: 40px 30px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-green);
  box-shadow: 0 10px 30px rgba(10, 196, 84, 0.2);
}

.service-card .icon {
  margin-bottom: 20px;
  color: var(--primary-green);
  display: flex;
  align-items: center;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.service-card p {
  color: var(--light-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-wrapper {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--white);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--light-text);
}

.contact-detail-item .icon-inline {
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-detail-item a:hover {
  color: var(--primary-green);
}

.cr-no {
  font-size: 1.3rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-top: 20px;
}

.socials {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.socials a {
  width: 46px;
  height: 46px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: var(--transition);
}

.socials a:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
  transform: translateY(-3px);
}

/* --- Footer --- */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
  color: var(--light-text);
  font-size: 0.95rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .header-container {
    padding: 0 10px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  [dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
  }

  .nav-links.active {
    right: 0;
  }

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

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .heading {
    font-size: 2.3rem;
  }

  .section-padding {
    padding: 70px 0;
  }
}
