/* Base Styles */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --text-light: #f3f4f6;
  --text-dark: #111827;
  --bg-light: #f9fafb;
  --bg-dark: #1f2937;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* RTL Support */
html[dir="rtl"] {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
  font-size: 1.25rem;
}

.shield-icon {
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

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

.lang-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.lang-toggle:hover {
  background: var(--primary-dark);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(30,58,138,0.9), rgba(0,0,0,0.9));
}

video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.button-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1rem 0;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background: var(--primary-dark);
}

.features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  width: 100%;
  max-width: 1280px;
  padding: 0 1rem;
}

.feature-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: 0.3s;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .features {
    grid-template-columns: 1fr;
  }

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

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