/* Global Styles */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00aaff;
  --accent-color: #ff9500;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --bg-color: #000000;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: 'Tajawal', 'Poppins', sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

html[dir="rtl"] .section-title::after {
  right: 50%;
  left: auto;
  transform: translateX(50%);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-text {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.btn-text:hover::after {
  width: 100%;
}

html[dir="rtl"] .btn-text::after {
  right: 0;
  left: auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

html[dir="rtl"] .logo img {
  margin-right: 0;
  margin-left: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links ul {
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

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

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

.language-switcher {
  display: flex;
  margin-left: 20px;
}

html[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 20px;
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  padding: 5px 10px;
  transition: var(--transition);
}

.language-switcher button.active {
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 800px;
  padding-top: 80px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Systems Section */
.systems {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.system-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.system-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.system-icon svg {
  color: var(--primary-color);
  width: 30px;
  height: 30px;
}

.system-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.system-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.systems-cta {
  text-align: center;
  margin-top: 30px;
}

/* Dark Card */
.dark-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* What We Do Section */
.what-we-do {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  text-align: center;
  height: 100%;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon svg {
  color: var(--primary-color);
  width: 35px;
  height: 35px;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
}

.services-cta {
  text-align: center;
  margin-top: 30px;
}

/* Featured Projects Section */
.featured-projects {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.projects-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.project-slide {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
}

.project-image {
  height: 300px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-slide:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  background: var(--bg-card);
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.projects-cta {
  text-align: center;
  margin-top: 30px;
}

/* Clients Section */
.clients {
  padding: 100px 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}

.client-logo {
  background: var(--bg-card);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.client-logo img {
  max-height: 60px;
  filter: grayscale(100%) brightness(200%);
  transition: var(--transition);
}

.client-logo:hover img {
  filter: grayscale(0%) brightness(100%);
}

/* CTA Section */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.cta-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

html[dir="rtl"] .footer-logo img {
  margin-right: 0;
  margin-left: 10px;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

html[dir="rtl"] .footer-title::after {
  right: 0;
  left: auto;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

html[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.contact-icon {
  margin-right: 10px;
  color: var(--primary-color);
}

html[dir="rtl"] .contact-icon {
  margin-right: 0;
  margin-left: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--text-secondary);
}

/* About Page */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-stats {
  margin-top: 40px;
}

.stats-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.stats-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  text-align: center;
}

.value-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-icon svg {
  color: var(--primary-color);
  width: 35px;
  height: 35px;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-check {
  width: 30px;
  height: 30px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

html[dir="rtl"] .service-check {
  margin-right: 0;
  margin-left: 15px;
}

.service-check svg {
  color: var(--primary-color);
  width: 16px;
  height: 16px;
}

.service-item h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.service-item p {
  color: var(--text-secondary);
}

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

.service-full-card {
  margin-bottom: 30px;
}

.service-full-card .service-icon {
  margin: 0 0 20px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-item {
  position: relative;
  padding-right: 30px;
}

html[dir="rtl"] .process-item {
  padding-right: 0;
  padding-left: 30px;
}

.process-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.process-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--primary-color);
}

html[dir="rtl"] .process-arrow {
  right: auto;
  left: 0;
  transform: translateY(-50%) rotate(180deg);
}

.process-item:last-child .process-arrow {
  display: none;
}

/* Reference Page */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--bg-card);
  border: none;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-color);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  overflow: hidden;
}

.project-card .project-image {
  height: 200px;
  margin-bottom: 20px;
}

.project-content h3 {
  margin-bottom: 10px;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  text-align: center;
}

.testimonial-quote {
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.5;
}

.testimonial-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

html[dir="rtl"] .contact-icon-wrapper {
  margin-right: 0;
  margin-left: 15px;
}

.contact-icon-wrapper svg {
  color: var(--primary-color);
  width: 24px;
  height: 24px;
}

.contact-text h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-text p {
  color: var(--text-secondary);
}

.contact-social {
  margin-top: 40px;
}

.contact-social h3 {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.contact-form h2 {
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

.form-control.error {
  border-color: #ff3333;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

.map-section {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 30px;
}

/* Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Language-specific styles */
[data-lang-en], [data-lang-ar] {
  display: none;
}

html[lang="en"] [data-lang-en] {
  display: block;
}

html[lang="ar"] [data-lang-ar] {
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 50px 20px;
    transition: var(--transition);
    overflow-y: auto;
  }
  
  html[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  html[dir="rtl"] .nav-links.active {
    right: 0;
  }
  
  .nav-links ul {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }
  
  .language-switcher {
    margin: 20px 0 0;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .projects-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}
